diff options
author | Marco Bubke <marco.bubke@qt.io> | 2016-09-22 12:26:55 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2016-09-22 10:56:56 +0000 |
commit | 6c4b05fd549e25d622913a74874b546441bf85c6 (patch) | |
tree | b8a3bc8a04f8a20012a932092549ac600ce3d2cf /src/libs/utils/hostosinfo.h | |
parent | e4a5f5fa34b8d73930fec3fa08320df7e87aa81a (diff) |
Utils: ConstExpr is implicitly inline
Change-Id: Ie75071c0479d2483ca82c589fbc45acd9f629e3e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/utils/hostosinfo.h')
-rw-r--r-- | src/libs/utils/hostosinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/hostosinfo.h b/src/libs/utils/hostosinfo.h index 70f01f8f5d9..23d1b2b6508 100644 --- a/src/libs/utils/hostosinfo.h +++ b/src/libs/utils/hostosinfo.h @@ -42,7 +42,7 @@ namespace Utils { class QTCREATOR_UTILS_EXPORT HostOsInfo { public: - static constexpr inline OsType hostOs() + static constexpr OsType hostOs() { #if defined(Q_OS_WIN) return OsTypeWindows; @@ -64,7 +64,7 @@ public: static constexpr bool isWindowsHost() { return hostOs() == OsTypeWindows; } static constexpr bool isLinuxHost() { return hostOs() == OsTypeLinux; } static constexpr bool isMacHost() { return hostOs() == OsTypeMac; } - static constexpr inline bool isAnyUnixHost() + static constexpr bool isAnyUnixHost() { #ifdef Q_OS_UNIX return true; |