From e74cb34e22323b255ee9fc7603eb82f90cd60d28 Mon Sep 17 00:00:00 2001 From: Nikita Kolotov Date: Thu, 15 Aug 2019 00:02:46 +0300 Subject: [PATCH] Code enhancement: remove use of deprecated function std::bind2nd Fixed use of deprecated function std::bind2nd. --- PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp index f10ee438..a9180468 100644 --- a/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp +++ b/PowerEditor/src/WinControls/WindowsDlg/WindowsDlg.cpp @@ -780,7 +780,7 @@ void WindowsDlg::doClose() --(*itr); } } - _idxMap.erase(std::remove_if(_idxMap.begin(), _idxMap.end(), bind2nd(equal_to(), -1)), _idxMap.end()); + _idxMap.erase(remove_if(_idxMap.begin(), _idxMap.end(), bind(equal_to(), placeholders::_1, -1)), _idxMap.end()); } delete[] nmdlg.Items;