Mesh: replace boost::bind with std::bind

This commit is contained in:
wmayer
2022-06-21 15:23:47 +02:00
parent b159415cba
commit 9d0c787f03
3 changed files with 13 additions and 14 deletions

View File

@@ -24,6 +24,7 @@
#ifndef _PreComp_
# include <algorithm>
# include <functional>
# include <QMenu>
# include <QTimer>
# include <Inventor/SbLine.h>
@@ -45,7 +46,6 @@
# include <Inventor/nodes/SoPickStyle.h>
# include <Inventor/nodes/SoSeparator.h>
# include <Inventor/nodes/SoShapeHints.h>
# include <boost_bind_bind.hpp>
#endif
#include "MeshEditor.h"
@@ -61,7 +61,7 @@
#include <Gui/View3DInventorViewer.h>
using namespace MeshGui;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
PROPERTY_SOURCE(MeshGui::ViewProviderFace, Gui::ViewProviderDocumentObject)
@@ -478,7 +478,7 @@ void MeshFillHole::startEditing(MeshGui::ViewProviderMesh* vp)
viewer->addEventCallback(SoEvent::getClassTypeId(),
MeshFillHole::fileHoleCallback, this);
myConnection = App::GetApplication().signalChangedObject.connect(
boost::bind(&MeshFillHole::slotChangedObject, this, bp::_1, bp::_2));
std::bind(&MeshFillHole::slotChangedObject, this, sp::_1, sp::_2));
Gui::coinRemoveAllChildren(myBoundariesRoot);
myBoundariesRoot->addChild(viewer->getHeadlight());