modernize C++: move from boost::bind to std::bind
This commit is contained in:
@@ -56,7 +56,7 @@ FC_LOG_LEVEL_INIT("Selection",false,true,true)
|
||||
|
||||
using namespace Gui;
|
||||
using namespace std;
|
||||
namespace bp = boost::placeholders;
|
||||
namespace sp = std::placeholders;
|
||||
|
||||
SelectionGateFilterExternal::SelectionGateFilterExternal(const char *docName, const char *objName) {
|
||||
if(docName) {
|
||||
@@ -131,8 +131,8 @@ void SelectionObserver::attachSelection()
|
||||
auto &signal = newStyle ? Selection().signalSelectionChanged3 :
|
||||
oldStyle ? Selection().signalSelectionChanged2 :
|
||||
Selection().signalSelectionChanged ;
|
||||
connectSelection = signal.connect(boost::bind
|
||||
(&SelectionObserver::_onSelectionChanged, this, bp::_1));
|
||||
connectSelection = signal.connect(std::bind
|
||||
(&SelectionObserver::_onSelectionChanged, this, sp::_1));
|
||||
|
||||
if (!filterDocName.empty()) {
|
||||
Selection().addSelectionGate(
|
||||
@@ -1613,8 +1613,8 @@ SelectionSingleton::SelectionSingleton()
|
||||
hz = 0;
|
||||
ActiveGate = nullptr;
|
||||
gateResolve = ResolveMode::OldStyleElement;
|
||||
App::GetApplication().signalDeletedObject.connect(boost::bind(&Gui::SelectionSingleton::slotDeletedObject, this, bp::_1));
|
||||
signalSelectionChanged.connect(boost::bind(&Gui::SelectionSingleton::slotSelectionChanged, this, bp::_1));
|
||||
App::GetApplication().signalDeletedObject.connect(std::bind(&Gui::SelectionSingleton::slotDeletedObject, this, sp::_1));
|
||||
signalSelectionChanged.connect(std::bind(&Gui::SelectionSingleton::slotSelectionChanged, this, sp::_1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user