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:
Orgad Shaneh
2016-08-03 22:54:19 +03:00
committed by Orgad Shaneh
parent 991498845a
commit a6c17fc537
11 changed files with 12 additions and 89 deletions

View File

@@ -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
}
}