Fix cppcheck warnings and cleanup suppression config

- redundantAssignment
- knownConditionTrueFalse
This commit is contained in:
Roland Winklmeier
2018-08-07 14:41:05 +02:00
committed by Klaus Basan
parent 000bdee457
commit 3774f2b60f
7 changed files with 17 additions and 23 deletions

View File

@@ -23,12 +23,13 @@ namespace BlackGui
{
IWindowFinder *IWindowFinder::create()
{
IWindowFinder *finder = nullptr;
#if defined(Q_OS_WIN)
finder = new CWindowFinderWindows();
IWindowFinder *finder = new CWindowFinderWindows();
#elif defined(Q_OS_LINUX)
IWindowFinder *finder = nullptr;
#elif defined(Q_OS_MACOS)
IWindowFinder *finder = nullptr;
#endif
return finder;