Salome HOME
fight warnings c++17, fix minor warnings. Build BLSURFPLUGIN finished
authorSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 06:00:54 +0000 (09:00 +0300)
committerSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 06:00:54 +0000 (09:00 +0300)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx
src/BLSURFPlugin/BLSURFPlugin_Hypothesis.hxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx
src/GUI/BLSURFPluginGUI_HypothesisCreator.h

index 5871959d67fd80af3986d445cc342ad3af528e4f..5e6e531a3e0a1a0ba2c84ed9dc6f421828373428 100644 (file)
@@ -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;
 }
 
index f8ff69fc23a167f122a14b8b658bf5f3f3b59bc6..565d367c5a589390be938635d47a9309e10afec5 100644 (file)
@@ -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.
index 243a1f0ae34e45c4fe214e8be68bb1cade5fd831..5a591e9d4ddd4badb2b1a72cef666470ba329795 100644 (file)
@@ -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;
index 9dd36bc6ae05b2b38631443bc12bff5886b6babc..ed98874c82c1d8de41db19a9e74b90b1d68622e9 100644 (file)
@@ -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;