mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -23,7 +23,7 @@ CTServiceAPI::CTServiceAPI(const char *hostName, const char *game)
|
||||
std::vector<const char *> hostArray;
|
||||
std::vector<short> portArray;
|
||||
char hostConfig[4096];
|
||||
if (hostName == NULL)
|
||||
if (hostName == nullptr)
|
||||
hostName = DEFAULT_HOST;
|
||||
if (!game)
|
||||
game = DEFAULT_GAMECODE;
|
||||
@@ -47,7 +47,7 @@ CTServiceAPI::CTServiceAPI(const char *hostName, const char *game)
|
||||
portArray.push_back(port);
|
||||
}
|
||||
}
|
||||
while ((ptr = strtok(NULL, " ")) != NULL);
|
||||
while ((ptr = strtok(nullptr, " ")) != nullptr);
|
||||
}
|
||||
if (hostArray.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user