Use STL bind (not Boost) and the std::placeholders.

This commit is contained in:
Jean-Paul Chaput 2023-09-22 18:00:06 +02:00 committed by Gabriel Gouvine
parent f22b7000b6
commit d877a311b5
7 changed files with 8 additions and 10 deletions

View File

@ -15,7 +15,6 @@
#include <functional>
#include <boost/bind.hpp>
#include <QAction>
#include <QMenu>
#include <QMenuBar>

View File

@ -15,7 +15,6 @@
#include <functional>
#include <boost/bind.hpp>
#include <QAction>
#include <QMenu>
#include <QMenuBar>

View File

@ -17,8 +17,8 @@
#include <unistd.h>
#include <algorithm>
#include <functional>
#include <sstream>
#include <boost/bind.hpp>
#include <QApplication>
#include <QImage>
#include "hurricane/configuration/Configuration.h"
@ -200,7 +200,7 @@ namespace Hurricane {
//cerr << "(w,h) = (" << w << "," << h << ")" << endl;
//cerr << "(dw,dh) = (" << drawingWidth << "," << drawingHeight << ")" << endl;
CellWidget::PainterCb_t cb = boost::bind( &CellImage::pageDecorate, this, _1 );
CellWidget::PainterCb_t cb = std::bind( &CellImage::pageDecorate, this, std::placeholders::_1 );
_cellWidget->copyToImage( _image, cb );
return _image;

View File

@ -16,8 +16,8 @@
#include <unistd.h>
#include <algorithm>
#include <functional>
#include <sstream>
#include <boost/bind.hpp>
#include <QApplication>
#include <QPrinter>
#include "hurricane/configuration/Configuration.h"
@ -378,7 +378,7 @@ namespace Hurricane {
//cerr << " (xpaper,ypaper) = (" << _xpaper << "," << _ypaper << ")" << endl;
//cerr << " (dw,dh) = (" << _drawingWidth << "," << _drawingHeight << ")" << endl;
CellWidget::PainterCb_t cb = boost::bind( &CellPrinter::pageDecorate, this, _1 );
CellWidget::PainterCb_t cb = std::bind( &CellPrinter::pageDecorate, this, std::placeholders::_1 );
_cellWidget->copyToPrinter( _xpaper, _ypaper, _printer, cb );
_printer = NULL;

View File

@ -14,7 +14,7 @@
// +-----------------------------------------------------------------+
#include <boost/bind.hpp>
#include <functional>
#include <QAction>
#include <QMenu>
#include <QMenuBar>
@ -223,7 +223,7 @@ namespace Katana {
KatanaEngine* katana = KatanaEngine::get( cell );
if (not katana) {
katana = KatanaEngine::create( cell );
katana->setPostEventCb( boost::bind(&GraphicKatanaEngine::postEvent,this) );
katana->setPostEventCb( std::bind(&GraphicKatanaEngine::postEvent,this) );
katana->setViewer( _viewer );
katana->printConfiguration();
katana->digitalInit();

View File

@ -16,7 +16,7 @@
// +-----------------------------------------------------------------+
#include <boost/bind.hpp>
#include <functional>
#include <QAction>
#include <QMenu>
#include <QMenuBar>

View File

@ -14,7 +14,7 @@
// +-----------------------------------------------------------------+
#include <boost/bind.hpp>
#include <functional>
#include <QAction>
#include <QMenu>
#include <QMenuBar>