modernize C++: move from boost::bind to std::bind
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "WorkflowManager.h"
|
||||
|
||||
using namespace PartDesignGui;
|
||||
namespace bp = boost::placeholders;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
#if 0 // needed for Qt's lupdate utility
|
||||
qApp->translate("Workbench", "&Sketch");
|
||||
@@ -443,10 +443,10 @@ void Workbench::activated()
|
||||
Gui::Control().showTaskView();
|
||||
|
||||
// Let us be notified when a document is activated, so that we can update the ActivePartObject
|
||||
activeDoc = Gui::Application::Instance->signalActiveDocument.connect(boost::bind(&Workbench::slotActiveDocument, this, bp::_1));
|
||||
createDoc = App::GetApplication().signalNewDocument.connect(boost::bind(&Workbench::slotNewDocument, this, bp::_1));
|
||||
finishDoc = App::GetApplication().signalFinishRestoreDocument.connect(boost::bind(&Workbench::slotFinishRestoreDocument, this, bp::_1));
|
||||
deleteDoc = App::GetApplication().signalDeleteDocument.connect(boost::bind(&Workbench::slotDeleteDocument, this, bp::_1));
|
||||
activeDoc = Gui::Application::Instance->signalActiveDocument.connect(std::bind(&Workbench::slotActiveDocument, this, sp::_1));
|
||||
createDoc = App::GetApplication().signalNewDocument.connect(std::bind(&Workbench::slotNewDocument, this, sp::_1));
|
||||
finishDoc = App::GetApplication().signalFinishRestoreDocument.connect(std::bind(&Workbench::slotFinishRestoreDocument, this, sp::_1));
|
||||
deleteDoc = App::GetApplication().signalDeleteDocument.connect(std::bind(&Workbench::slotDeleteDocument, this, sp::_1));
|
||||
}
|
||||
|
||||
void Workbench::deactivated()
|
||||
|
||||
Reference in New Issue
Block a user