QFlags: add QT_NO_DATASTREAM checks to datastream operator declaration
Amends 729c0960b84183bcf9576f974cb5e3b3c3fdc6ef. Found in Qt 6.9 API review. Pick-to: 6.9 Change-Id: Ieb81fe000e61fef54a003f52789fa1475aac5239 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
b150955043
commit
348b680ae5
@ -206,8 +206,10 @@ private:
|
||||
return (it == end ? Int(0) : (Int(*it) | initializer_list_helper(it + 1, end)));
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
template <typename E> friend QDataStream &operator<<(QDataStream &, QFlags<E>);
|
||||
template <typename E> friend QDataStream &operator>>(QDataStream &, QFlags<E> &);
|
||||
#endif
|
||||
using Base::i;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user