Fix more compiler warnings.
This commit is contained in:
parent
2b35c5c570
commit
c0307bf172
|
@ -35,9 +35,9 @@ struct doscp_t
|
|||
} doscp_t;
|
||||
|
||||
static unsigned int mtools_default_codepage = 850;
|
||||
static char *wcharCp = NULL;
|
||||
static const char *wcharCp = NULL;
|
||||
|
||||
static char* wcharTries[] =
|
||||
static const char* wcharTries[] =
|
||||
{
|
||||
"WCHAR_T",
|
||||
"UTF-32BE", "UTF-32LE",
|
||||
|
@ -48,9 +48,9 @@ static char* wcharTries[] =
|
|||
"UCS-4", "UCS-2"
|
||||
};
|
||||
|
||||
static wchar_t *testString = L"ab";
|
||||
static const wchar_t *testString = L"ab";
|
||||
|
||||
static int tryConvert(char *testCp)
|
||||
static int tryConvert(const char *testCp)
|
||||
{
|
||||
char *inbuf = (char *)testString;
|
||||
size_t inbufLen = 2*sizeof(wchar_t);
|
||||
|
|
|
@ -31,14 +31,11 @@
|
|||
class CoreBackend::CoreBackendPrivate
|
||||
{
|
||||
public:
|
||||
CoreBackendPrivate(CoreBackend& cb) : coreBackend(cb) {}
|
||||
|
||||
private:
|
||||
CoreBackend& coreBackend;
|
||||
CoreBackendPrivate() {}
|
||||
};
|
||||
|
||||
CoreBackend::CoreBackend() :
|
||||
d(new CoreBackendPrivate(*this))
|
||||
d(new CoreBackendPrivate())
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue