From: SALOME Date: Wed, 26 Aug 2020 06:00:54 +0000 (+0300) Subject: fight warnings c++17, fix minor warnings. Build BLSURFPLUGIN finished X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4833019ffbc816c79ff8a799e0ffcfda1c10f56;p=plugins%2Fblsurfplugin.git fight warnings c++17, fix minor warnings. Build BLSURFPLUGIN finished --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 5871959..5e6e531 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -621,7 +621,7 @@ bool BLSURFPlugin_Hypothesis::GetJacobianRectification() } //============================================================================= -void BLSURFPlugin_Hypothesis::SetUseDeprecatedPatchMesher( bool useDeprecatedPatchMesher ) +void BLSURFPlugin_Hypothesis::SetUseDeprecatedPatchMesher( bool /*useDeprecatedPatchMesher*/ ) { // if ( GetUseDeprecatedPatchMesher() != useDeprecatedPatchMesher ) // { @@ -3524,7 +3524,7 @@ std::istream & operator >>(std::istream & load, BLSURFPlugin_Hypothesis & hyp) { */ //================================================================================ -bool BLSURFPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape) { +bool BLSURFPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, const TopoDS_Shape& /*theShape*/) { return false; } diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx index f8ff69f..565d367 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx @@ -183,7 +183,7 @@ public: void SetJacobianRectificationRespectGeometry( bool allowRectification ); bool GetJacobianRectificationRespectGeometry(); - void SetUseDeprecatedPatchMesher( bool useDeprecatedPatchMesher ); + void SetUseDeprecatedPatchMesher( bool /*useDeprecatedPatchMesher*/ ); bool GetUseDeprecatedPatchMesher(); void SetJacobianRectification( bool allowRectification ); @@ -580,7 +580,7 @@ public: * \param theShape - the geometry of interest * \retval bool - always false */ - virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape); + virtual bool SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, const TopoDS_Shape& /*theShape*/); /*! * \brief Initialize my parameter values by default parameters. diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 243a1f0..5a591e9 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -295,7 +295,7 @@ EnforcedTreeWidgetDelegate::EnforcedTreeWidgetDelegate(QObject *parent) } QWidget *EnforcedTreeWidgetDelegate::createEditor(QWidget *parent, - const QStyleOptionViewItem & option , + const QStyleOptionViewItem & /*option*/ , const QModelIndex & index ) const { QModelIndex father = index.parent(); @@ -1291,7 +1291,7 @@ void BLSURFPluginGUI_HypothesisCreator::clearEnforcedVertexWidgets() This method updates the tooltip of a modified item. The QLineEdit widgets content is synchronized with the coordinates of the enforced vertex clicked in the tree widget. */ -void BLSURFPluginGUI_HypothesisCreator::updateEnforcedVertexValues(QTreeWidgetItem* item, int column) { +void BLSURFPluginGUI_HypothesisCreator::updateEnforcedVertexValues(QTreeWidgetItem* item, int /*column*/) { QVariant vertexName = item->data(ENF_VER_NAME_COLUMN, Qt::EditRole); QVariant x = item->data(ENF_VER_X_COLUMN, Qt::EditRole); QVariant y = item->data(ENF_VER_Y_COLUMN, Qt::EditRole); @@ -1733,7 +1733,7 @@ This method enable the proper shape selection widget to Face or Edge shapes // } //} -void BLSURFPluginGUI_HypothesisCreator::onPeriodicityTreeClicked(QTreeWidgetItem* item, int row) +void BLSURFPluginGUI_HypothesisCreator::onPeriodicityTreeClicked(QTreeWidgetItem* item, int /*row*/) { QString shapeName, shapeEntry; CORBA::Object_var shape; @@ -2711,7 +2711,7 @@ void BLSURFPluginGUI_HypothesisCreator::onAddOption() myAdvWidget->AddOption( TBL_CUSTOM, NULL ); } -void BLSURFPluginGUI_HypothesisCreator::onChangeOptionName( int row, int column ) +void BLSURFPluginGUI_HypothesisCreator::onChangeOptionName( int /*row*/, int /*column*/ ) { // if ( column != OPTION_NAME_COLUMN ) // return; diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h index 9dd36bc..ed98874 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h @@ -401,7 +401,7 @@ class EnforcedTreeWidgetDelegate : public QItemDelegate public: EnforcedTreeWidgetDelegate(QObject *parent = 0); - QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, + QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem & /*option*/, const QModelIndex &index) const; void setEditorData(QWidget *editor, const QModelIndex &index) const;