forked from qt-creator/qt-creator
Utils: ConstExpr is implicitly inline
Change-Id: Ie75071c0479d2483ca82c589fbc45acd9f629e3e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user