diff options
Diffstat (limited to 'src/corelib/global/qflags.h')
-rw-r--r-- | src/corelib/global/qflags.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/global/qflags.h b/src/corelib/global/qflags.h index 94d9e45acb..3305369ff9 100644 --- a/src/corelib/global/qflags.h +++ b/src/corelib/global/qflags.h @@ -83,8 +83,6 @@ Q_DECLARE_TYPEINFO(QIncompatibleFlag, Q_PRIMITIVE_TYPE); constexpr inline QIncompatibleFlag::QIncompatibleFlag(int value) noexcept : i(value) {} -#ifndef Q_NO_TYPESAFE_FLAGS - template<typename Enum> class QFlags { @@ -190,17 +188,6 @@ constexpr inline void operator-(int f1, QFlags<Flags::enum_type> f2) noexcept = Q_DECLARE_INCOMPATIBLE_FLAGS(Flags) -#else /* Q_NO_TYPESAFE_FLAGS */ - -#ifndef Q_MOC_RUN -#define Q_DECLARE_FLAGS(Flags, Enum)\ -typedef uint Flags; -#endif - -#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags) - -#endif /* Q_NO_TYPESAFE_FLAGS */ - QT_END_NAMESPACE #endif // QFLAGS_H |