diff options
author | Popkornium18 <mail@popkornium18.de> | 2020-06-28 01:48:14 +0300 |
---|---|---|
committer | Popkornium18 <mail@popkornium18.de> | 2020-06-28 20:04:27 +0300 |
commit | 691c38736a7061e5d8f39f2b0f47e8eb3eecc228 (patch) | |
tree | ab6e1b4ce20d8662c294d18a2569a7602b60d38a /plugins/bf4 | |
parent | fd8386a20641fe521803e3d5bfddc9a79cb0fef2 (diff) |
REFAC(plugins): replace NULL with nullptr
This changes all occurances of NULL in the plugins source
dir to nullptr. Additionally explicit comparisons with NULL were
removed.
Diffstat (limited to 'plugins/bf4')
-rw-r--r-- | plugins/bf4/bf4.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/bf4/bf4.cpp b/plugins/bf4/bf4.cpp index e4d211e23..6cbec31d2 100644 --- a/plugins/bf4/bf4.cpp +++ b/plugins/bf4/bf4.cpp @@ -73,7 +73,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa oidentity << "{"; escape(host, sizeof(host)); // Only include host (IP:port) if it is not empty and does not include the string "bot" (which means it's a local server). - if (strcmp(host, "") != 0 && strstr(host, "bot") == NULL) { + if (strcmp(host, "") != 0 && !strstr(host, "bot")) { oidentity << std::endl << "\"Host\": \"" << host << "\","; } @@ -216,8 +216,8 @@ static MumblePlugin bf4plug = { MUMBLE_PLUGIN_MAGIC, description, shortname, - NULL, - NULL, + nullptr, + nullptr, trylock1, generic_unlock, longdesc, |