mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fix cppcheck warnings and cleanup suppression config
- redundantAssignment - knownConditionTrueFalse
This commit is contained in:
committed by
Klaus Basan
parent
000bdee457
commit
3774f2b60f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user