diff options
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 |