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:
@@ -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