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/ql | |
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/ql')
-rw-r--r-- | plugins/ql/ql.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ql/ql.cpp b/plugins/ql/ql.cpp index 42733bc5c..0fd7d0ed8 100644 --- a/plugins/ql/ql.cpp +++ b/plugins/ql/ql.cpp @@ -60,7 +60,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa escape(host, sizeof(host)); std::ostringstream ocontext; ocontext << " {"; - if (strcmp(host, "") != 0 && strstr(host, "loopback") == NULL) { // Only include host (IP:Port) if it is not empty and does not include the string "loopback" (which means it's a local server). + if (strcmp(host, "") != 0 && !strstr(host, "loopback")) { // Only include host (IP:Port) if it is not empty and does not include the string "loopback" (which means it's a local server). ocontext << "\"Host\": \"" << host << "\""; // Set host address in identity. } else { ocontext << "\"Host\": null"; @@ -168,8 +168,8 @@ static MumblePlugin qlplug = { MUMBLE_PLUGIN_MAGIC, description, shortname, - NULL, - NULL, + nullptr, + nullptr, trylock1, generic_unlock, longdesc, |