diff options
| author | 2016-04-30 18:23:42 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:44 +0100 | |
| commit | 505d0768f8392e3c4775425dd97f41e1c829ef44 (patch) | |
| tree | 55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/my | |
| parent | Update my clang-format to 3.8.0 (diff) | |
| download | KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2 KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip | |
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/my')
| -rw-r--r-- | src/modules/my/Idle.cpp | 4 | ||||
| -rw-r--r-- | src/modules/my/Idle_x11.cpp | 6 | ||||
| -rw-r--r-- | src/modules/my/libkvimy.cpp | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/my/Idle.cpp b/src/modules/my/Idle.cpp index bdb6f8fbb..1acd57b06 100644 --- a/src/modules/my/Idle.cpp +++ b/src/modules/my/Idle.cpp @@ -24,7 +24,7 @@ #include <QDateTime> #include <QTimer> -static IdlePlatform * platform = 0; +static IdlePlatform * platform = nullptr; static int platform_ref = 0; Idle::Idle() @@ -56,7 +56,7 @@ Idle::~Idle() if(platform_ref == 0) { delete platform; - platform = 0; + platform = nullptr; } } delete d; diff --git a/src/modules/my/Idle_x11.cpp b/src/modules/my/Idle_x11.cpp index 593843362..2913369e0 100644 --- a/src/modules/my/Idle_x11.cpp +++ b/src/modules/my/Idle_x11.cpp @@ -36,7 +36,7 @@ int IdlePlatform::secondsIdle() const { return 0; } #include <X11/Xutil.h> #include <X11/extensions/scrnsaver.h> -static XErrorHandler old_handler = 0; +static XErrorHandler old_handler = nullptr; extern "C" int xerrhandler(Display * dpy, XErrorEvent * err) { if(err->error_code == BadDrawable) @@ -53,7 +53,7 @@ public: Private() { // make coverity happy - ss_info = 0; + ss_info = nullptr; } }; @@ -69,7 +69,7 @@ IdlePlatform::~IdlePlatform() if(old_handler) { XSetErrorHandler(old_handler); - old_handler = 0; + old_handler = nullptr; } delete d; } diff --git a/src/modules/my/libkvimy.cpp b/src/modules/my/libkvimy.cpp index de1aa3e78..43ea72c1c 100644 --- a/src/modules/my/libkvimy.cpp +++ b/src/modules/my/libkvimy.cpp @@ -394,7 +394,7 @@ static bool my_kvs_fnc_network(KviKvsModuleFunctionCall * c) static bool my_module_init(KviModule * m) { - g_pIdle = 0; + g_pIdle = nullptr; KVSM_REGISTER_FUNCTION(m, "nick", my_kvs_fnc_nick); KVSM_REGISTER_FUNCTION(m, "user", my_kvs_fnc_user); KVSM_REGISTER_FUNCTION(m, "host", my_kvs_fnc_host); @@ -415,7 +415,7 @@ static bool my_module_cleanup(KviModule *) { if(g_pIdle) delete g_pIdle; - g_pIdle = 0; + g_pIdle = nullptr; return true; } |
