Utils: ConstExpr is implicitly inline

Change-Id: Ie75071c0479d2483ca82c589fbc45acd9f629e3e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Marco Bubke
2016-09-22 12:26:55 +02:00
parent e4a5f5fa34
commit 6c4b05fd54

View File

@@ -42,7 +42,7 @@ namespace Utils {
class QTCREATOR_UTILS_EXPORT HostOsInfo class QTCREATOR_UTILS_EXPORT HostOsInfo
{ {
public: public:
static constexpr inline OsType hostOs() static constexpr OsType hostOs()
{ {
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
return OsTypeWindows; return OsTypeWindows;
@@ -64,7 +64,7 @@ public:
static constexpr bool isWindowsHost() { return hostOs() == OsTypeWindows; } static constexpr bool isWindowsHost() { return hostOs() == OsTypeWindows; }
static constexpr bool isLinuxHost() { return hostOs() == OsTypeLinux; } static constexpr bool isLinuxHost() { return hostOs() == OsTypeLinux; }
static constexpr bool isMacHost() { return hostOs() == OsTypeMac; } static constexpr bool isMacHost() { return hostOs() == OsTypeMac; }
static constexpr inline bool isAnyUnixHost() static constexpr bool isAnyUnixHost()
{ {
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX
return true; return true;