modernize C++: move from boost::bind to std::bind
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
using namespace PartDesignGui;
|
||||
namespace bp = boost::placeholders;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
WorkflowManager * WorkflowManager::_instance = nullptr;
|
||||
|
||||
@@ -49,11 +49,11 @@ WorkflowManager::WorkflowManager() {
|
||||
}
|
||||
|
||||
connectNewDocument = App::GetApplication().signalNewDocument.connect(
|
||||
boost::bind( &WorkflowManager::slotNewDocument, this, bp::_1 ) );
|
||||
std::bind( &WorkflowManager::slotNewDocument, this, sp::_1 ) );
|
||||
connectFinishRestoreDocument = App::GetApplication().signalFinishRestoreDocument.connect(
|
||||
boost::bind( &WorkflowManager::slotFinishRestoreDocument, this, bp::_1 ) );
|
||||
std::bind( &WorkflowManager::slotFinishRestoreDocument, this, sp::_1 ) );
|
||||
connectDeleteDocument = App::GetApplication().signalDeleteDocument.connect(
|
||||
boost::bind( &WorkflowManager::slotDeleteDocument, this, bp::_1 ) );
|
||||
std::bind( &WorkflowManager::slotDeleteDocument, this, sp::_1 ) );
|
||||
}
|
||||
|
||||
WorkflowManager::~WorkflowManager() {
|
||||
|
||||
Reference in New Issue
Block a user