Use less std::bind

This commit is contained in:
Thomas Goyne 2014-06-04 07:34:58 -07:00
parent 745aa8fef0
commit 9133293869
1 changed files with 2 additions and 2 deletions

View File

@ -289,7 +289,7 @@ bool HotkeyDataViewModel::IsContainer(wxDataViewItem const& item) const {
bool HotkeyDataViewModel::SetValue(wxVariant const& variant, wxDataViewItem const& item, unsigned int col) {
if (!has_pending_changes) {
has_pending_changes = true;
parent->AddPendingChange(std::bind(&HotkeyDataViewModel::Apply, this));
parent->AddPendingChange([=] { Apply(); });
}
return get(item)->SetValue(variant, col);
}
@ -313,7 +313,7 @@ void HotkeyDataViewModel::Delete(wxDataViewItem const& item) {
if (!has_pending_changes) {
has_pending_changes = true;
parent->AddPendingChange(std::bind(&HotkeyDataViewModel::Apply, this));
parent->AddPendingChange([=] { Apply(); });
}
}