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 2bb3dd1c7e
commit 52e1c7c33b
64 changed files with 279 additions and 266 deletions

View File

@@ -62,7 +62,7 @@
using namespace Gui;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
AlignmentGroup::AlignmentGroup()
{
@@ -656,7 +656,7 @@ ManualAlignment::ManualAlignment()
{
// connect with the application's signal for deletion of documents
this->connectApplicationDeletedDocument = Gui::Application::Instance->signalDeleteDocument
.connect(boost::bind(&ManualAlignment::slotDeletedDocument, this, bp::_1));
.connect(std::bind(&ManualAlignment::slotDeletedDocument, this, sp::_1));
// setup sensor connection
d->sensorCam1 = new SoNodeSensor(Private::syncCameraCB, this);
@@ -849,8 +849,8 @@ void ManualAlignment::startAlignment(Base::Type mousemodel)
// Connect to the document's signal as we want to be notified when something happens
if (this->connectDocumentDeletedObject.connected())
this->connectDocumentDeletedObject.disconnect();
this->connectDocumentDeletedObject = myDocument->signalDeletedObject.connect(boost::bind
(&ManualAlignment::slotDeletedObject, this, bp::_1));
this->connectDocumentDeletedObject = myDocument->signalDeletedObject.connect(std::bind
(&ManualAlignment::slotDeletedObject, this, sp::_1));
continueAlignment();
}