modernize C++: move from boost::bind to std::bind

This commit is contained in:
wmayer
2023-08-08 14:19:00 +02:00
committed by wwmayer
parent 7bb6f48dbd
commit 68d22d864b
64 changed files with 279 additions and 266 deletions

View File

@@ -45,7 +45,7 @@ FC_LOG_LEVEL_INIT("Expression",true,true)
using namespace Gui;
using namespace App;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
ExpressionBinding::ExpressionBinding()
: m_autoApply(false)
@@ -111,9 +111,9 @@ void ExpressionBinding::bind(const App::ObjectIdentifier &_path)
//connect to be informed about changes
DocumentObject * docObj = path.getDocumentObject();
if (docObj) {
expressionchanged = docObj->ExpressionEngine.expressionChanged.connect(boost::bind(&ExpressionBinding::expressionChange, this, bp::_1));
expressionchanged = docObj->ExpressionEngine.expressionChanged.connect(std::bind(&ExpressionBinding::expressionChange, this, sp::_1));
App::Document* doc = docObj->getDocument();
objectdeleted = doc->signalDeletedObject.connect(boost::bind(&ExpressionBinding::objectDeleted, this, bp::_1));
objectdeleted = doc->signalDeletedObject.connect(std::bind(&ExpressionBinding::objectDeleted, this, sp::_1));
}
}