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

@@ -48,7 +48,7 @@
using namespace Gui::TaskView;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
//**************************************************************************
@@ -295,16 +295,16 @@ TaskView::TaskView(QWidget *parent)
connectApplicationActiveDocument =
App::GetApplication().signalActiveDocument.connect
(boost::bind(&Gui::TaskView::TaskView::slotActiveDocument, this, bp::_1));
(std::bind(&Gui::TaskView::TaskView::slotActiveDocument, this, sp::_1));
connectApplicationDeleteDocument =
App::GetApplication().signalDeletedDocument.connect
(boost::bind(&Gui::TaskView::TaskView::slotDeletedDocument, this));
(std::bind(&Gui::TaskView::TaskView::slotDeletedDocument, this));
connectApplicationUndoDocument =
App::GetApplication().signalUndoDocument.connect
(boost::bind(&Gui::TaskView::TaskView::slotUndoDocument, this, bp::_1));
(std::bind(&Gui::TaskView::TaskView::slotUndoDocument, this, sp::_1));
connectApplicationRedoDocument =
App::GetApplication().signalRedoDocument.connect
(boost::bind(&Gui::TaskView::TaskView::slotRedoDocument, this, bp::_1));
(std::bind(&Gui::TaskView::TaskView::slotRedoDocument, this, sp::_1));
}
TaskView::~TaskView()