Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPopkornium18 <mail@popkornium18.de>2020-06-28 01:48:14 +0300
committerPopkornium18 <mail@popkornium18.de>2020-06-28 20:04:27 +0300
commit691c38736a7061e5d8f39f2b0f47e8eb3eecc228 (patch)
treeab6e1b4ce20d8662c294d18a2569a7602b60d38a /plugins/l4d
parentfd8386a20641fe521803e3d5bfddc9a79cb0fef2 (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/l4d')
-rw-r--r--plugins/l4d/l4d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/l4d/l4d.cpp b/plugins/l4d/l4d.cpp
index 8252d6ea1..d4acec970 100644
--- a/plugins/l4d/l4d.cpp
+++ b/plugins/l4d/l4d.cpp
@@ -74,7 +74,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
oidentity << "{";
// Host
- 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).
oidentity << std::endl << "\"Host\": \"" << host << "\","; // Set host address in identity.
} else {
oidentity << std::endl << "\"Host\": null,";
@@ -179,8 +179,8 @@ static MumblePlugin l4dplug = {
MUMBLE_PLUGIN_MAGIC,
description,
shortname,
- NULL,
- NULL,
+ nullptr,
+ nullptr,
trylock1,
generic_unlock,
longdesc,