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

@@ -34,7 +34,7 @@
using namespace App;
namespace bp = boost::placeholders;
namespace sp = std::placeholders;
namespace App {
@@ -74,9 +74,9 @@ private:
MergeDocuments::MergeDocuments(App::Document* doc) : guiup(false), verbose(true), stream(nullptr), appdoc(doc)
{
connectExport = doc->signalExportObjects.connect
(boost::bind(&MergeDocuments::exportObject, this, bp::_1, bp::_2));
(std::bind(&MergeDocuments::exportObject, this, sp::_1, sp::_2));
connectImport = doc->signalImportObjects.connect
(boost::bind(&MergeDocuments::importObject, this, bp::_1, bp::_2));
(std::bind(&MergeDocuments::importObject, this, sp::_1, sp::_2));
QCoreApplication* app = QCoreApplication::instance();
if (app && app->inherits("QApplication")) {