diff options
| author | 2016-05-01 16:16:09 +0100 | |
|---|---|---|
| committer | 2016-05-01 16:16:09 +0100 | |
| commit | fe375f69972cd912739c0d68fa4951d35de90e5e (patch) | |
| tree | 71bd2c2b59d6be62d7c18588a417e5aa39ab233c /src/modules/system/Plugin.cpp | |
| parent | libkvidcc: fix $dcc.currentSpeed documentation add missing @short and fix rig... (diff) | |
| parent | Apply clang-tidy: modernize-loop-convert (diff) | |
| download | KVIrc-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/system/Plugin.cpp')
| -rw-r--r-- | src/modules/system/Plugin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/system/Plugin.cpp b/src/modules/system/Plugin.cpp index 29c5db05b..3d579c083 100644 --- a/src/modules/system/Plugin.cpp +++ b/src/modules/system/Plugin.cpp @@ -123,7 +123,7 @@ Plugin * Plugin::load(const QString & szFileName) if(!pLibrary->load()) { delete pLibrary; - return 0; + return nullptr; } Plugin * pPlugin = new Plugin(pLibrary, KviFileUtils::extractFileName(szFileName)); @@ -279,7 +279,7 @@ bool PluginManager::pluginCall(KviKvsModuleFunctionCall * c) pArgvBuffer = (char *)malloc(iSize); i = 2; - char * x = 0; + char * x = nullptr; x = pArgvBuffer; while(i < (iArgc + 2)) { @@ -296,8 +296,8 @@ bool PluginManager::pluginCall(KviKvsModuleFunctionCall * c) else { //Avoid using unfilled variables - ppArgv = 0; - pArgvBuffer = 0; + ppArgv = nullptr; + pArgvBuffer = nullptr; iArgc = 0; } @@ -414,7 +414,7 @@ bool PluginManager::loadPlugin(const QString & szPluginPath) { if(isPluginLoaded(szPluginPath)) { - return getPlugin(szPluginPath) != 0; + return getPlugin(szPluginPath) != nullptr; } else { |
