modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
This commit is contained in:
@@ -69,10 +69,12 @@ namespace sp = std::placeholders;
|
||||
|
||||
void FunctionWidget::setViewProvider(ViewProviderFemPostFunction* view)
|
||||
{
|
||||
//NOLINTBEGIN
|
||||
m_view = view;
|
||||
m_object = static_cast<Fem::FemPostFunction*>(view->getObject());
|
||||
m_connection = m_object->getDocument()->signalChangedObject.connect(
|
||||
std::bind(&FunctionWidget::onObjectsChanged, this, sp::_1, sp::_2));
|
||||
//NOLINTEND
|
||||
}
|
||||
|
||||
void FunctionWidget::onObjectsChanged(const App::DocumentObject& obj, const App::Property& p) {
|
||||
|
||||
Reference in New Issue
Block a user