aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/spellchecker/libkvispellchecker.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
committerGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
commitfe375f69972cd912739c0d68fa4951d35de90e5e (patch)
tree71bd2c2b59d6be62d7c18588a417e5aa39ab233c /src/modules/spellchecker/libkvispellchecker.cpp
parentlibkvidcc: fix $dcc.currentSpeed documentation add missing @short and fix rig... (diff)
parentApply clang-tidy: modernize-loop-convert (diff)
downloadKVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.gz
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.bz2
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.zip
Merge pull request #1962 from DarthGandalf/modernize
Apply several fixes of clang-tidy
Diffstat (limited to 'src/modules/spellchecker/libkvispellchecker.cpp')
-rw-r--r--src/modules/spellchecker/libkvispellchecker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/spellchecker/libkvispellchecker.cpp b/src/modules/spellchecker/libkvispellchecker.cpp
index 55cb3f19c..d87e641ea 100644
--- a/src/modules/spellchecker/libkvispellchecker.cpp
+++ b/src/modules/spellchecker/libkvispellchecker.cpp
@@ -28,8 +28,8 @@
#include <enchant.h>
#include <enchant-provider.h>
-static EnchantBroker * g_pEnchantBroker = NULL;
-static KviPointerList<EnchantDict> * g_pEnchantDicts = NULL;
+static EnchantBroker * g_pEnchantBroker = nullptr;
+static KviPointerList<EnchantDict> * g_pEnchantDicts = nullptr;
/*
@doc: spellchecker.available_dictionaries
@@ -208,9 +208,9 @@ static bool spellchecker_module_cleanup(KviModule *)
enchant_broker_free_dict(g_pEnchantBroker, g_pEnchantDicts->takeFirst());
delete g_pEnchantDicts;
- g_pEnchantDicts = NULL;
+ g_pEnchantDicts = nullptr;
enchant_broker_free(g_pEnchantBroker);
- g_pEnchantBroker = NULL;
+ g_pEnchantBroker = nullptr;
return true;
}