QAssociativeIterableImpl::advanceImpl(): remove deprecation protection
The comment claims it is needed for "the deprecated QHash::iterator::operator--()", which has been removed already. Change-Id: I90f5abdcd14e6cac4ed7144e96eb26bf34477391 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
8e48184120
commit
42b5c28db5
@ -1186,12 +1186,9 @@ public:
|
||||
{ IteratorOwner<typename T::const_iterator>::assign(iterator,
|
||||
static_cast<const T*>(container)->find(*static_cast<const typename T::key_type*>(p))); }
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED // Hits on the deprecated QHash::iterator::operator--()
|
||||
template<class T>
|
||||
static void advanceImpl(void **p, int step)
|
||||
{ std::advance(*static_cast<typename T::const_iterator*>(*p), step); }
|
||||
QT_WARNING_POP
|
||||
|
||||
template<class T>
|
||||
static void beginImpl(const void *container, void **iterator)
|
||||
|
Loading…
Reference in New Issue
Block a user