summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qflags.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/global/qflags.h b/src/corelib/global/qflags.h
index 349f227002..d3e812aff1 100644
--- a/src/corelib/global/qflags.h
+++ b/src/corelib/global/qflags.h
@@ -52,11 +52,11 @@ class QFlag
{
int i;
public:
- inline QFlag(int i);
+ Q_DECL_CONSTEXPR inline QFlag(int i);
inline operator int() const { return i; }
};
-inline QFlag::QFlag(int ai) : i(ai) {}
+Q_DECL_CONSTEXPR inline QFlag::QFlag(int ai) : i(ai) {}
class QIncompatibleFlag
{