forked from qt-creator/qt-creator
Remove all QT_VERSION_CHECK
We only support Qt 5.6 now. Change-Id: If94864400545b057623e3af0743c55ea1e84e33b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
991498845a
commit
a6c17fc537
@@ -412,18 +412,9 @@ inline void sort(Container &c, R (S::*function)() const)
|
||||
template <typename Container, typename Op>
|
||||
inline void reverseForeach(const Container &c, const Op &operation)
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
||||
auto rend = c.begin();
|
||||
auto it = c.end();
|
||||
while (it != rend) {
|
||||
--it;
|
||||
operation(*it);
|
||||
}
|
||||
#else
|
||||
auto rend = c.rend();
|
||||
for (auto it = c.rbegin(); it != rend; ++it)
|
||||
operation(*it);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user