mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Various Cleanups (shared/Database/)
This commit is contained in:
parent
9753625fd1
commit
c334cd5ea4
25 changed files with 508 additions and 508 deletions
|
|
@ -42,7 +42,7 @@ class Field
|
|||
enum DataTypes GetType() const { return mType; }
|
||||
bool IsNULL() const { return mValue == NULL; }
|
||||
|
||||
const char *GetString() const { return mValue; }
|
||||
const char* GetString() const { return mValue; }
|
||||
std::string GetCppString() const
|
||||
{
|
||||
return mValue ? mValue : ""; // std::string s = 0 have undefine result in C++
|
||||
|
|
@ -57,7 +57,7 @@ class Field
|
|||
uint64 GetUInt64() const
|
||||
{
|
||||
uint64 value = 0;
|
||||
if(!mValue || sscanf(mValue,UI64FMTD,&value) == -1)
|
||||
if (!mValue || sscanf(mValue,UI64FMTD,&value) == -1)
|
||||
return 0;
|
||||
|
||||
return value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue