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 case 0: // Q_OS_LINUX
#ifdef Q_OS_LINUX // Defined on Linux. #ifdef Q_OS_LINUX // Defined on Linux.
return true; return true;
#else
return false;
#endif #endif
break;
case 1: // Q_OS_MAC case 1: // Q_OS_MAC
#ifdef Q_OS_MAC // Defined on MAC OS (synonym for Darwin). #ifdef Q_OS_MAC // Defined on MAC OS (synonym for Darwin).
return true; return true;
#else
return false;
#endif #endif
break;
case 2: // Q_OS_WIN32 case 2: // Q_OS_WIN32
#ifdef Q_OS_WIN32 // Defined on all supported versions of Windows. #ifdef Q_OS_WIN32 // Defined on all supported versions of Windows.
return true; return true;
#else
return false;
#endif #endif
break;
default: default:
break; break;
} }