diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-03 22:54:19 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-12 13:29:58 +0000 |
commit | a6c17fc5371451b792a709ca142d28b16d3e610f (patch) | |
tree | 442c8957f3e9b8b9bf816f0c8bcee2dd48c61fb0 /src/libs/utils/algorithm.h | |
parent | 991498845ad3cc32dbbcc1396656c0c9262581ac (diff) |
Remove all QT_VERSION_CHECK
We only support Qt 5.6 now.
Change-Id: If94864400545b057623e3af0743c55ea1e84e33b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/algorithm.h')
-rw-r--r-- | src/libs/utils/algorithm.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libs/utils/algorithm.h b/src/libs/utils/algorithm.h index 8dc611088a..10b6daef94 100644 --- a/src/libs/utils/algorithm.h +++ b/src/libs/utils/algorithm.h @@ -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 } } |