Replace std::ignore with boost::ignore_unused()
According to https://isocpp.org/blog/2016/09/quick-q-stdignore-for-ignoring-unused-variable std::ignore is not supposed to be used for this
This commit is contained in:
@@ -162,6 +162,7 @@
|
||||
#endif // _PreComp_
|
||||
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
|
||||
#include <App/Material.h>
|
||||
#include <Base/BoundBox.h>
|
||||
@@ -4280,7 +4281,7 @@ TopoShape &TopoShape::makeTransform(const TopoShape &shape, const gp_Trsf &trsf,
|
||||
|
||||
TopoShape &TopoShape::makeGTransform(const TopoShape &shape, const Base::Matrix4D &rclTrf, const char *op, bool copy)
|
||||
{
|
||||
std::ignore = op;
|
||||
boost::ignore_unused(op);
|
||||
_Shape = shape.transformGShape(rclTrf, copy);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
// Boost
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
|
||||
// OCC
|
||||
#include <Standard_math.hxx>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <boost/core/ignore_unused.hpp>
|
||||
# include <QAction>
|
||||
# include <QMessageBox>
|
||||
#endif
|
||||
@@ -61,7 +62,7 @@ TaskShapeBinder::TaskShapeBinder(ViewProviderShapeBinder* view, bool newObj, QWi
|
||||
, ui(new Ui_TaskShapeBinder)
|
||||
, vp(view)
|
||||
{
|
||||
std::ignore = newObj;
|
||||
boost::ignore_unused(newObj);
|
||||
|
||||
// we need a separate container widget to add all controls to
|
||||
proxy = new QWidget(this);
|
||||
|
||||
Reference in New Issue
Block a user