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

@@ -47,7 +47,7 @@
FC_LOG_LEVEL_INIT("Gui", true, true)
using namespace Gui;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
class ElementColors::Private: public Gui::SelectionGate
{
@@ -332,10 +332,10 @@ ElementColors::ElementColors(ViewProviderDocumentObject* vp, bool noHide)
Selection().addSelectionGate(d, ResolveMode::NoResolve);
d->connectDelDoc = Application::Instance->signalDeleteDocument.connect(boost::bind
(&ElementColors::slotDeleteDocument, this, bp::_1));
d->connectDelObj = Application::Instance->signalDeletedObject.connect(boost::bind
(&ElementColors::slotDeleteObject, this, bp::_1));
d->connectDelDoc = Application::Instance->signalDeleteDocument.connect(std::bind
(&ElementColors::slotDeleteDocument, this, sp::_1));
d->connectDelObj = Application::Instance->signalDeletedObject.connect(std::bind
(&ElementColors::slotDeleteObject, this, sp::_1));
d->populate();
}