summaryrefslogtreecommitdiff
path: root/ui/exec_finished_box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/exec_finished_box.cpp')
-rw-r--r--ui/exec_finished_box.cpp14
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
}
bgstack15