summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2012-07-09 21:59:21 +0100
committerQt by Nokia <qt-info@nokia.com>2012-07-10 03:26:13 +0200
commit482205d847a15e2afc7988c1792aaeb37e71505f (patch)
treec32eb840fdbc9c2a528789146657824933f474b8 /src
parent6f86fea820f7de17da9501ebb323398cd851fab3 (diff)
Use Q_DECL_CONSTEXPR for the QFlag's inline constructor
Change-Id: I8f9c7bf0fddb79c6c0937e415c427a0547a5cab0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-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
{