QFlags: kill Q_NO_TYPESAFE_FLAGS
The macro is undocumented and unused. Change-Id: I5c09f4e0e2d41e13d2678e2936e0d0e39ed69639 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
e2145a47fc
commit
79d7801388
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue