forked from qt-creator/qt-creator
Utils: Eradicate Q_FOREACH in algorithm.h
Change-Id: I16cbe1896091e6677341dd954f58f69db1d61530 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
28b61a9f9c
commit
e3eee3b2b9
@@ -349,7 +349,7 @@ std::tuple<C, C> partition(const C &container, F predicate)
|
||||
C miss;
|
||||
auto hitIns = inserter(hit);
|
||||
auto missIns = inserter(miss);
|
||||
foreach (auto i, container) {
|
||||
for (auto i : container) {
|
||||
if (predicate(i))
|
||||
hitIns = i;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user