modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
This commit is contained in:
@@ -161,7 +161,9 @@ void ViewProviderFemAnalysis::setupContextMenu(QMenu *menu, QObject *, const cha
|
||||
{
|
||||
Gui::ActionFunction *func = new Gui::ActionFunction(menu);
|
||||
QAction *act = menu->addAction(tr("Activate analysis"));
|
||||
func->trigger(act, std::bind(&ViewProviderFemAnalysis::doubleClicked, this));
|
||||
func->trigger(act, [this](){
|
||||
this->doubleClicked();
|
||||
});
|
||||
}
|
||||
|
||||
bool ViewProviderFemAnalysis::setEdit(int ModNum)
|
||||
|
||||
Reference in New Issue
Block a user