Code enhancement: remove use of deprecated function std::bind2nd

Fixed use of deprecated function std::bind2nd.
This commit is contained in:
Nikita Kolotov 2019-08-15 00:02:46 +03:00 committed by Don HO
parent d38559b339
commit e74cb34e22
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -780,7 +780,7 @@ void WindowsDlg::doClose()
--(*itr); --(*itr);
} }
} }
_idxMap.erase(std::remove_if(_idxMap.begin(), _idxMap.end(), bind2nd(equal_to<int>(), -1)), _idxMap.end()); _idxMap.erase(remove_if(_idxMap.begin(), _idxMap.end(), bind(equal_to<int>(), placeholders::_1, -1)), _idxMap.end());
} }
delete[] nmdlg.Items; delete[] nmdlg.Items;