mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com> Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
@@ -64,10 +64,10 @@ public:
|
||||
if (!entryStr || !atoi(entryStr))
|
||||
return false;
|
||||
|
||||
char* flagsStr = strtok(NULL, " ");
|
||||
char* flagsStr = strtok(nullptr, " ");
|
||||
uint8 flags = flagsStr ? uint8(atoi(flagsStr)) : 0;
|
||||
|
||||
char* commentStr = strtok(NULL, "");
|
||||
char* commentStr = strtok(nullptr, "");
|
||||
if (!commentStr)
|
||||
return false;
|
||||
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
break;
|
||||
}
|
||||
|
||||
PreparedStatement* stmt = NULL;
|
||||
PreparedStatement* stmt = nullptr;
|
||||
stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_DISABLES);
|
||||
stmt->setUInt32(0, entry);
|
||||
stmt->setUInt8(1, disableType);
|
||||
@@ -263,7 +263,7 @@ public:
|
||||
break;
|
||||
}
|
||||
|
||||
PreparedStatement* stmt = NULL;
|
||||
PreparedStatement* stmt = nullptr;
|
||||
stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_DISABLES);
|
||||
stmt->setUInt32(0, entry);
|
||||
stmt->setUInt8(1, disableType);
|
||||
|
||||
Reference in New Issue
Block a user