mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Some minor cleanup for readability
This commit is contained in:
@ -59,7 +59,7 @@ void plGeneric::IReset()
|
||||
fBoolVal = false;
|
||||
fIntVal = 0;
|
||||
fFloatVal = 0.0;
|
||||
fStringVal = plString();
|
||||
fStringVal = "";
|
||||
}
|
||||
|
||||
plGeneric& plGeneric::operator=(const bool& val)
|
||||
@ -148,4 +148,4 @@ int plGeneric::Read(hsStream* stream)
|
||||
break;
|
||||
}
|
||||
return stream->GetPosition();
|
||||
}
|
||||
}
|
||||
|
@ -164,13 +164,13 @@ public:
|
||||
plString() { }
|
||||
|
||||
#ifndef PLSTRING_POLLUTE_ASCII_CAST
|
||||
plString(const char *ascii) { IConvertFromUtf8(ascii, kSizeAuto); }
|
||||
plString(const char *cstr) { IConvertFromUtf8(cstr, kSizeAuto); }
|
||||
#endif
|
||||
plString(const plString ©) : fUtf8Buffer(copy.fUtf8Buffer) { }
|
||||
plString(const plStringBuffer<char> &init) { operator=(init); }
|
||||
|
||||
#ifndef PLSTRING_POLLUTE_ASCII_CAST
|
||||
plString &operator=(const char *ascii) { IConvertFromUtf8(ascii, kSizeAuto); return *this; }
|
||||
plString &operator=(const char *cstr) { IConvertFromUtf8(cstr, kSizeAuto); return *this; }
|
||||
#endif
|
||||
plString &operator=(const plString ©) { fUtf8Buffer = copy.fUtf8Buffer; return *this; }
|
||||
plString &operator=(const plStringBuffer<char> &init);
|
||||
|
Reference in New Issue
Block a user