From: Enar Väikene Date: Mon, 14 May 2012 16:49:28 +0000 (+0300) Subject: Fixed small mistakes detected with clang++ X-Git-Url: https://vaikene.ee/gitweb/overview.html?a=commitdiff_plain;h=c8050984a289a6ea98812395313ef37d4c7fd059;p=evaf Fixed small mistakes detected with clang++ --- diff --git a/src/apps/FileFinder/GUI/gui.h b/src/apps/FileFinder/GUI/gui.h index 2c55cc5..4d22d0b 100644 --- a/src/apps/FileFinder/GUI/gui.h +++ b/src/apps/FileFinder/GUI/gui.h @@ -41,7 +41,7 @@ namespace SdiWindow { struct iSdiWindow; } // namespace eVaf::SdiWindow namespace FileFinder { - struct iFileFinder; + class iFileFinder; namespace GUI { namespace Internal { diff --git a/src/apps/PswGen/CLI/cli.cpp b/src/apps/PswGen/CLI/cli.cpp index 1b59e8b..cd18b85 100644 --- a/src/apps/PswGen/CLI/cli.cpp +++ b/src/apps/PswGen/CLI/cli.cpp @@ -54,8 +54,8 @@ int const Module::DefaultPasswordLength = 16; Module::Module() : Plugins::iPlugin() , mReady(false) - , mGenerator(false) - , mStorage(false) + , mGenerator(0) + , mStorage(0) , mEvReady(0) { setObjectName(QString("%1-Module").arg(VER_MODULE_NAME_STR)); diff --git a/src/libs/Common/logger.cpp b/src/libs/Common/logger.cpp index 809670a..bb88073 100644 --- a/src/libs/Common/logger.cpp +++ b/src/libs/Common/logger.cpp @@ -425,7 +425,7 @@ QString Logger::printf(char const * const fmt, ...) const va_end(ap); #else ::va_start(ap, fmt); - if (::vasprintf(&str, fmt, ap)); // IF is needed to avoid the compiler warning + if (::vasprintf(&str, fmt, ap)) {}; // IF is needed to avoid the compiler warning ::va_end(ap); #endif diff --git a/src/libs/Plugins/pluginmanager.cpp b/src/libs/Plugins/pluginmanager.cpp index 69ca736..21db40b 100644 --- a/src/libs/Plugins/pluginmanager.cpp +++ b/src/libs/Plugins/pluginmanager.cpp @@ -457,7 +457,7 @@ iPlugin * Module::create(QString const & name) // If the module is not loaded, load it now if (!mLoader) { if (!load()) - return false; + return 0; } iPlugin * i = 0;