From 6aff0c4e48d312e827412d2c922afe983081092e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 6 Nov 2013 17:02:34 +0100 Subject: [PATCH] QUrlTwoFlag: add two missing constexpr The other member functions that can be constexpr already are, only these were missing. Change-Id: I717c74b210b45cfb8af9168d61e27e3ff2f6a9c9 Reviewed-by: Olivier Goffart Reviewed-by: Thiago Macieira --- src/corelib/io/qurl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/io/qurl.h b/src/corelib/io/qurl.h index 76e3c0f8ca..602e91ce30 100644 --- a/src/corelib/io/qurl.h +++ b/src/corelib/io/qurl.h @@ -114,8 +114,8 @@ public: Q_DECL_CONSTEXPR inline QUrlTwoFlags operator~() const { return QUrlTwoFlags(QFlag(~i)); } - inline bool testFlag(E1 f) const { return (i & f) == f && (f != 0 || i == int(f)); } - inline bool testFlag(E2 f) const { return (i & f) == f && (f != 0 || i == int(f)); } + Q_DECL_CONSTEXPR inline bool testFlag(E1 f) const { return (i & f) == f && (f != 0 || i == int(f)); } + Q_DECL_CONSTEXPR inline bool testFlag(E2 f) const { return (i & f) == f && (f != 0 || i == int(f)); } }; template