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/eventeditor/libkvieventeditor.cpp | |
| 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/eventeditor/libkvieventeditor.cpp')
| -rw-r--r-- | src/modules/eventeditor/libkvieventeditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/eventeditor/libkvieventeditor.cpp b/src/modules/eventeditor/libkvieventeditor.cpp index a2ce4d8fa..04c4b1600 100644 --- a/src/modules/eventeditor/libkvieventeditor.cpp +++ b/src/modules/eventeditor/libkvieventeditor.cpp @@ -28,7 +28,7 @@ #include "KviLocale.h" #include "KviMainWindow.h" -EventEditorWindow * g_pEventEditorWindow = 0; +EventEditorWindow * g_pEventEditorWindow = nullptr; /* @doc: eventeditor.open @@ -61,20 +61,20 @@ static bool eventeditor_module_init(KviModule * m) KVSM_REGISTER_SIMPLE_COMMAND(m, "open", eventeditor_kvs_cmd_open); - g_pEventEditorWindow = 0; + g_pEventEditorWindow = nullptr; return true; } static bool eventeditor_module_can_unload(KviModule *) { - return (g_pEventEditorWindow == 0); + return (g_pEventEditorWindow == nullptr); } static bool eventeditor_module_cleanup(KviModule *) { if(g_pEventEditorWindow && g_pMainWindow) g_pMainWindow->closeWindow(g_pEventEditorWindow); - g_pEventEditorWindow = 0; + g_pEventEditorWindow = nullptr; return true; } |
