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 <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1248b1cbe2
commit
6aff0c4e48
@ -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<typename E1, typename E2>
|
||||
|
Loading…
Reference in New Issue
Block a user