summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/ui/command_box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/ui/command_box.cpp')
-rw-r--r--FreeFileSync/Source/ui/command_box.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/FreeFileSync/Source/ui/command_box.cpp b/FreeFileSync/Source/ui/command_box.cpp
index 6e769bb7..b862d365 100644
--- a/FreeFileSync/Source/ui/command_box.cpp
+++ b/FreeFileSync/Source/ui/command_box.cpp
@@ -75,7 +75,7 @@ void CommandBox::addItemHistory()
equalNoCase(newCommand, cmd))
return;
- eraseIf(history_, [&](const Zstring& item) { return equalNoCase(newCommand, item); });
+ std::erase_if(history_, [&](const Zstring& item) { return equalNoCase(newCommand, item); });
history_.insert(history_.begin(), newCommand);
@@ -192,7 +192,7 @@ void CommandBox::OnKeyEvent(wxKeyEvent& event)
//this->SetSelection(wxNOT_FOUND);
//delete selected row
- eraseIf(history_, [&](const Zstring& item) { return item == selValue; });
+ std::erase_if(history_, [&](const Zstring& item) { return item == selValue; });
SetString(pos, wxString()); //in contrast to Delete(), this one does not kill the drop-down list and gives a nice visual feedback!
//Delete(pos);
bgstack15