Also remove 0 initialization from QUrlTwoFlags
Was overlooked when removed from QFlags Pick-to: 6.0 6.0.0 Change-Id: If65ff4a07e2f72589d2c32c2d24366ff9dc2405f Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
16fa6e2f62
commit
05bb9b1016
|
|
@ -64,14 +64,13 @@ template <typename E1, typename E2>
|
|||
class QUrlTwoFlags
|
||||
{
|
||||
int i;
|
||||
typedef int QUrlTwoFlags:: *Zero;
|
||||
public:
|
||||
constexpr inline QUrlTwoFlags() : i(0) {}
|
||||
constexpr inline QUrlTwoFlags(E1 f) : i(f) {}
|
||||
constexpr inline QUrlTwoFlags(E2 f) : i(f) {}
|
||||
constexpr inline QUrlTwoFlags(QFlag f) : i(f) {}
|
||||
constexpr inline QUrlTwoFlags(QFlags<E1> f) : i(f.operator typename QFlags<E1>::Int()) {}
|
||||
constexpr inline QUrlTwoFlags(QFlags<E2> f) : i(f.operator typename QFlags<E2>::Int()) {}
|
||||
constexpr inline QUrlTwoFlags(Zero = 0) : i(0) {}
|
||||
|
||||
inline QUrlTwoFlags &operator&=(int mask) { i &= mask; return *this; }
|
||||
inline QUrlTwoFlags &operator&=(uint mask) { i &= mask; return *this; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue