boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/range/algorithm/copy.hpp>
|
||||
#include <boost/assign.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <Base/Console.h>
|
||||
#include <App/Document.h>
|
||||
@@ -49,6 +49,7 @@ FC_LOG_LEVEL_INIT("Spreadsheet", true, true)
|
||||
using namespace App;
|
||||
using namespace Base;
|
||||
using namespace Spreadsheet;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
TYPESYSTEM_SOURCE(Spreadsheet::PropertySheet , App::PropertyExpressionContainer)
|
||||
|
||||
@@ -682,7 +683,7 @@ void PropertySheet::insertRows(int row, int count)
|
||||
boost::copy( data | boost::adaptors::map_keys, std::back_inserter(keys));
|
||||
|
||||
/* Sort them */
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, _1, _2));
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, bp::_1, bp::_2));
|
||||
|
||||
MoveCellsExpressionVisitor<PropertySheet> visitor(*this,
|
||||
CellAddress(row, CellAddress::MAX_COLUMNS), count, 0);
|
||||
@@ -733,7 +734,7 @@ void PropertySheet::removeRows(int row, int count)
|
||||
boost::copy(data | boost::adaptors::map_keys, std::back_inserter(keys));
|
||||
|
||||
/* Sort them */
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, _1, _2));
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::rowSortFunc, this, bp::_1, bp::_2));
|
||||
|
||||
MoveCellsExpressionVisitor<PropertySheet> visitor(*this,
|
||||
CellAddress(row + count - 1, CellAddress::MAX_COLUMNS), -count, 0);
|
||||
@@ -825,7 +826,7 @@ void PropertySheet::removeColumns(int col, int count)
|
||||
boost::copy(data | boost::adaptors::map_keys, std::back_inserter(keys));
|
||||
|
||||
/* Sort them */
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::colSortFunc, this, _1, _2));
|
||||
std::sort(keys.begin(), keys.end(), boost::bind(&PropertySheet::colSortFunc, this, bp::_1, bp::_2));
|
||||
|
||||
MoveCellsExpressionVisitor<PropertySheet> visitor(*this,
|
||||
CellAddress(CellAddress::MAX_ROWS, col + count - 1), 0, -count);
|
||||
@@ -1129,7 +1130,7 @@ void PropertySheet::slotChangedObject(const App::DocumentObject &obj, const App:
|
||||
|
||||
void PropertySheet::onAddDep(App::DocumentObject *obj) {
|
||||
depConnections[obj] = obj->signalChanged.connect(boost::bind(
|
||||
&PropertySheet::slotChangedObject, this, _1, _2));
|
||||
&PropertySheet::slotChangedObject, this, bp::_1, bp::_2));
|
||||
}
|
||||
|
||||
void PropertySheet::onRemoveDep(App::DocumentObject *obj) {
|
||||
|
||||
@@ -53,7 +53,6 @@
|
||||
#include <string>
|
||||
#include <iomanip>
|
||||
#include <boost/regex.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <deque>
|
||||
|
||||
FC_LOG_LEVEL_INIT("Spreadsheet",true,true)
|
||||
|
||||
@@ -38,17 +38,18 @@
|
||||
#include <Gui/Command.h>
|
||||
#include <Base/Tools.h>
|
||||
#include <Base/UnitsApi.h>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
|
||||
using namespace SpreadsheetGui;
|
||||
using namespace Spreadsheet;
|
||||
using namespace App;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
SheetModel::SheetModel(Sheet *_sheet, QObject *parent)
|
||||
: QAbstractTableModel(parent)
|
||||
, sheet(_sheet)
|
||||
{
|
||||
cellUpdatedConnection = sheet->cellUpdated.connect(bind(&SheetModel::cellUpdated, this, _1));
|
||||
cellUpdatedConnection = sheet->cellUpdated.connect(bind(&SheetModel::cellUpdated, this, bp::_1));
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Spreadsheet");
|
||||
aliasBgColor = QColor(Base::Tools::fromStdString(hGrp->GetASCII("AliasedCellBackgroundColor", "#feff9e")));
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <App/Document.h>
|
||||
#include <Gui/CommandT.h>
|
||||
#include <Gui/MainWindow.h>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include "../App/Utils.h"
|
||||
#include "../App/Cell.h"
|
||||
#include <App/Range.h>
|
||||
@@ -46,6 +46,7 @@
|
||||
using namespace SpreadsheetGui;
|
||||
using namespace Spreadsheet;
|
||||
using namespace App;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
void SheetViewHeader::mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
@@ -279,7 +280,7 @@ void SheetTableView::updateCellSpan(CellAddress address)
|
||||
void SheetTableView::setSheet(Sheet * _sheet)
|
||||
{
|
||||
sheet = _sheet;
|
||||
cellSpanChangedConnection = sheet->cellSpanChanged.connect(bind(&SheetTableView::updateCellSpan, this, _1));
|
||||
cellSpanChangedConnection = sheet->cellSpanChanged.connect(bind(&SheetTableView::updateCellSpan, this, bp::_1));
|
||||
|
||||
// Update row and column spans
|
||||
std::vector<std::string> usedCells = sheet->getUsedCells();
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include <App/DocumentObject.h>
|
||||
#include <App/PropertyStandard.h>
|
||||
#include <Gui/Command.h>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <Mod/Spreadsheet/App/Utils.h>
|
||||
#include "qtcolorpicker.h"
|
||||
#include <LineEdit.h>
|
||||
@@ -59,6 +59,7 @@ using namespace SpreadsheetGui;
|
||||
using namespace Spreadsheet;
|
||||
using namespace Gui;
|
||||
using namespace App;
|
||||
namespace bp = boost::placeholders;
|
||||
|
||||
/* TRANSLATOR SpreadsheetGui::SheetView */
|
||||
|
||||
@@ -99,8 +100,8 @@ SheetView::SheetView(Gui::Document *pcDocument, App::DocumentObject *docObj, QWi
|
||||
connect(ui->cellContent, SIGNAL(returnPressed()), this, SLOT( editingFinished() ));
|
||||
connect(ui->cellAlias, SIGNAL(returnPressed()), this, SLOT( editingFinished() ));
|
||||
|
||||
columnWidthChangedConnection = sheet->columnWidthChanged.connect(bind(&SheetView::resizeColumn, this, _1, _2));
|
||||
rowHeightChangedConnection = sheet->rowHeightChanged.connect(bind(&SheetView::resizeRow, this, _1, _2));
|
||||
columnWidthChangedConnection = sheet->columnWidthChanged.connect(bind(&SheetView::resizeColumn, this, bp::_1, bp::_2));
|
||||
rowHeightChangedConnection = sheet->rowHeightChanged.connect(bind(&SheetView::resizeRow, this, bp::_1, bp::_2));
|
||||
|
||||
connect( model, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), this, SLOT(modelUpdated(const QModelIndex &, const QModelIndex &)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user