diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:22:36 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:22:36 +0200 |
commit | ecb1524f8da7901338b263384fed3c612f117b4c (patch) | |
tree | e7e06423fe27ea5ab45f27fc4b39ae597ba72490 /ui/exec_finished_box.cpp | |
parent | 5.10 (diff) | |
download | FreeFileSync-ecb1524f8da7901338b263384fed3c612f117b4c.tar.gz FreeFileSync-ecb1524f8da7901338b263384fed3c612f117b4c.tar.bz2 FreeFileSync-ecb1524f8da7901338b263384fed3c612f117b4c.zip |
5.11
Diffstat (limited to 'ui/exec_finished_box.cpp')
-rw-r--r-- | ui/exec_finished_box.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/exec_finished_box.cpp b/ui/exec_finished_box.cpp index 6d760f77..bbd37301 100644 --- a/ui/exec_finished_box.cpp +++ b/ui/exec_finished_box.cpp @@ -110,8 +110,8 @@ void ExecFinishedBox::addItemHistory() //do not add built-in commands to history if (!skipCmd) { - for (auto iter = defaultCommands.begin(); iter != defaultCommands.end(); ++iter) - if (command == iter->first || command == iter->second) + for (auto it = defaultCommands.begin(); it != defaultCommands.end(); ++it) + if (command == it->first || command == it->second) { skipCmd = true; break; @@ -164,8 +164,8 @@ void ExecFinishedBox::setValueAndUpdateList(const std::wstring& value) items.push_back(implementation::translate(cmdTxtCloseProgressDlg)); //2. built in commands - for (auto iter = defaultCommands.begin(); iter != defaultCommands.end(); ++iter) - items.push_back(iter->first); + for (auto it = defaultCommands.begin(); it != defaultCommands.end(); ++it) + items.push_back(it->first); //3. history elements if (history_ && !history_->empty()) @@ -209,9 +209,9 @@ void ExecFinishedBox::OnValidateSelection(wxCommandEvent& event) if (value == separationLine) setValueAndUpdateList(std::wstring()); else - for (auto iter = defaultCommands.begin(); iter != defaultCommands.end(); ++iter) - if (iter->first == value) - return setValueAndUpdateList(iter->second); //replace GUI name by actual command string + for (auto it = defaultCommands.begin(); it != defaultCommands.end(); ++it) + if (it->first == value) + return setValueAndUpdateList(it->second); //replace GUI name by actual command string } |