Refactor to avoid "break" after "return".

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-12-21 17:56:52 +02:00
parent f3b900902b
commit 074620fe77

View File

@ -555,18 +555,21 @@ bool FvUpdater::CurrentlyRunningOnPlatform(const QString &platform)
case 0: // Q_OS_LINUX
#ifdef Q_OS_LINUX // Defined on Linux.
return true;
#else
return false;
#endif
break;
case 1: // Q_OS_MAC
#ifdef Q_OS_MAC // Defined on MAC OS (synonym for Darwin).
return true;
#else
return false;
#endif
break;
case 2: // Q_OS_WIN32
#ifdef Q_OS_WIN32 // Defined on all supported versions of Windows.
return true;
#else
return false;
#endif
break;
default:
break;
}