C++11: replace deprecated function std::bind2nd with lambda functions
This commit is contained in:
@@ -168,9 +168,8 @@ void DlgDisplayPropertiesImp::slotChangedObject(const Gui::ViewProvider& obj,
|
||||
// We pick out all the properties for which we need to update this dialog.
|
||||
std::vector<Gui::ViewProvider*> Provider = getSelection();
|
||||
std::vector<Gui::ViewProvider*>::const_iterator vp = std::find_if
|
||||
(Provider.begin(), Provider.end(),
|
||||
std::bind2nd(std::equal_to<Gui::ViewProvider*>(),
|
||||
const_cast<Gui::ViewProvider*>(&obj)));
|
||||
(Provider.begin(), Provider.end(), [&obj](Gui::ViewProvider* v) { return v == &obj; });
|
||||
|
||||
if (vp != Provider.end()) {
|
||||
const char* name = obj.getPropertyName(&prop);
|
||||
// this is not a property of the view provider but of the document object
|
||||
|
||||
Reference in New Issue
Block a user