mirror of https://github.com/AxioDL/tinyxml2.git
fix const. hopefully.
This commit is contained in:
parent
ce667c9233
commit
f458d265c1
12
tinyxml2.cpp
12
tinyxml2.cpp
|
@ -368,22 +368,22 @@ const char* StrPair::GetStr()
|
||||||
|
|
||||||
// --------- XMLUtil ----------- //
|
// --------- XMLUtil ----------- //
|
||||||
|
|
||||||
char* XMLUtil::writeBoolTrue = "true";
|
const char* XMLUtil::writeBoolTrue = "true";
|
||||||
char* XMLUtil::writeBoolFalse = "false";
|
const char* XMLUtil::writeBoolFalse = "false";
|
||||||
|
|
||||||
void XMLUtil::SetBool(const char* writeTrue, const char* writeFalse)
|
void XMLUtil::SetBool(const char* writeTrue, const char* writeFalse)
|
||||||
{
|
{
|
||||||
static const char* defTrue = "true";
|
static const char* defTrue = "true";
|
||||||
static const char* defFalse = "false";
|
static const char* defFalse = "false";
|
||||||
if (writeTrue)
|
if (writeTrue)
|
||||||
writeBoolTrue = (char*) writeTrue;
|
writeBoolTrue = writeTrue;
|
||||||
else
|
else
|
||||||
writeBoolTrue = (char*) defTrue;
|
writeBoolTrue = defTrue;
|
||||||
|
|
||||||
if (writeFalse)
|
if (writeFalse)
|
||||||
writeBoolFalse = (char*) writeFalse;
|
writeBoolFalse = writeFalse;
|
||||||
else
|
else
|
||||||
writeBoolFalse = (char*) defFalse;
|
writeBoolFalse = defFalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -616,8 +616,8 @@ public:
|
||||||
static void SetBool(const char* writeTrue, const char* writeFalse);
|
static void SetBool(const char* writeTrue, const char* writeFalse);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static char* writeBoolTrue;
|
static const char* writeBoolTrue;
|
||||||
static char* writeBoolFalse;
|
static const char* writeBoolFalse;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue