diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:59 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:59 +0200 |
commit | a1c91f4695e208d5a8f80dc37b1818169b7829ff (patch) | |
tree | 52f5134376d17c99b6c9e53133a2eb5cf171377c /ui/folder_history_box.h | |
parent | 5.16 (diff) | |
download | FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.gz FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.tar.bz2 FreeFileSync-a1c91f4695e208d5a8f80dc37b1818169b7829ff.zip |
5.17
Diffstat (limited to 'ui/folder_history_box.h')
-rw-r--r-- | ui/folder_history_box.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/folder_history_box.h b/ui/folder_history_box.h index 210f89c0..9ffa2d74 100644 --- a/ui/folder_history_box.h +++ b/ui/folder_history_box.h @@ -42,11 +42,11 @@ public: zen::trim(nameTmp); //insert new folder or put it to the front if already existing - auto iter = std::find_if(dirnames_.begin(), dirnames_.end(), + auto it = std::find_if(dirnames_.begin(), dirnames_.end(), [&](const Zstring& entry) { return ::EqualFilename()(entry, nameTmp); }); - if (iter != dirnames_.end()) - dirnames_.erase(iter); + if (it != dirnames_.end()) + dirnames_.erase(it); dirnames_.insert(dirnames_.begin(), nameTmp); if (dirnames_.size() > maxSize_) //keep maximal size of history list |