From 9133293869a1fe6357a54e2c89e71f3214ef2e9c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 4 Jun 2014 07:34:58 -0700 Subject: [PATCH] Use less std::bind --- src/hotkey_data_view_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotkey_data_view_model.cpp b/src/hotkey_data_view_model.cpp index 5e05e3e7e..e5256e118 100644 --- a/src/hotkey_data_view_model.cpp +++ b/src/hotkey_data_view_model.cpp @@ -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(); }); } }