summaryrefslogtreecommitdiff
path: root/zen/fixed_list.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:17:51 +0200
commit237aedc590b58c0e69d7dfcac92b5f767b7c004a (patch)
tree83f361a82ba483f2daf83b677e8685cd953812d9 /zen/fixed_list.h
parent4.5 (diff)
downloadFreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.gz
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.tar.bz2
FreeFileSync-237aedc590b58c0e69d7dfcac92b5f767b7c004a.zip
4.6
Diffstat (limited to 'zen/fixed_list.h')
-rw-r--r--zen/fixed_list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zen/fixed_list.h b/zen/fixed_list.h
index e80adb99..f08a4815 100644
--- a/zen/fixed_list.h
+++ b/zen/fixed_list.h
@@ -82,7 +82,9 @@ public:
void remove_if(Predicate pred)
{
Node* prev = NULL;
- for (auto ptr = first; ptr;)
+ Node* ptr = first;
+
+ while (ptr)
if (pred(ptr->val))
{
Node* tmp = ptr->next;
bgstack15