]> SALOME platform Git repositories - plugins/gmshplugin.git/commitdiff
Salome HOME
fight warnings c++17, fix minor warnings. Build GMSHPLUGIN finished
authorSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 08:14:56 +0000 (11:14 +0300)
committerSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 08:14:56 +0000 (11:14 +0300)
src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx
src/GMSHPlugin/GMSHPlugin_Hypothesis.hxx
src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx
src/GMSHPlugin/GMSHPlugin_Hypothesis_i.hxx

index d425d92a35594ec0ed8b0069d27818a81d253356..5a55ab213154c26a957bda5bf10fbc2bafa5427d 100644 (file)
@@ -331,8 +331,8 @@ std::istream & GMSHPlugin_Hypothesis::LoadFrom(std::istream & load)
  * \retval bool - always false
  */
 //================================================================================
-bool GMSHPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   theMesh,
-                                                  const TopoDS_Shape& theShape)
+bool GMSHPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   /*theMesh*/,
+                                                  const TopoDS_Shape& /*theShape*/)
 {
   return false;
 }
@@ -344,8 +344,8 @@ bool GMSHPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   theMesh,
  */
 //================================================================================
 
-bool GMSHPlugin_Hypothesis::SetParametersByDefaults(const TDefaults&  dflts,
-                                                    const SMESH_Mesh* theMesh)
+bool GMSHPlugin_Hypothesis::SetParametersByDefaults(const TDefaults&  /*dflts*/,
+                                                    const SMESH_Mesh* /*theMesh*/)
 {
   //_nbSegPerEdge = dflts._nbSegments;
   //_maxSize      = dflts._elemLength;
index 8cc61dc4c1b13771d04d516e12b88c48b44eb8da..90609fc347949584d7e61129d09069bf28f7ae4a 100644 (file)
@@ -140,13 +140,13 @@ 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.
    *  \retval bool - true if parameter values have been successfully defined
    */
-  virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
+  virtual bool SetParametersByDefaults(const TDefaults& /*dflts*/, const SMESH_Mesh* theMesh=0);
 
 private:
   Algo2D        _algo2d;
index 89b32d3e281cbed4ab9715d7d740950906943fc0..54000b72256e0c1e684643041b0b359dbf3d937e 100644 (file)
@@ -352,7 +352,7 @@ std::string GMSHPlugin_Hypothesis_i::getMethodOfParameter(const int paramIndex,
 
 bool
 GMSHPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryArray,
-                                             std::vector< int >         & subIDArray ) const
+                                             std::vector< int >         & /*subIDArray*/ ) const
 {
   typedef ::GMSHPlugin_Hypothesis THyp;
   const THyp* impl = static_cast<const THyp*>( myBaseImpl );
@@ -371,7 +371,7 @@ GMSHPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryA
 
 bool
 GMSHPlugin_Hypothesis_i::setObjectsDependOn( std::vector< std::string > & entryArray,
-                                             std::vector< int >         & subIDArray )
+                                             std::vector< int >         & /*subIDArray*/ )
 {
   typedef ::GMSHPlugin_Hypothesis THyp;
   THyp* impl = static_cast< THyp* >( myBaseImpl );
index f9b79a123851fd3bce11e05a638d43456b05e1a2..79d1831168f730aaac27780e6108f4da17a4f7c6 100644 (file)
@@ -170,11 +170,11 @@ class GMSHPLUGIN_EXPORT GMSHPlugin_Hypothesis_i:
 
   // Return geometry this hypothesis depends on. Return false if there is no geometry parameter
   virtual bool getObjectsDependOn( std::vector< std::string > & entryArray,
-                                   std::vector< int >         & subIDArray ) const;
+                                   std::vector< int >         & /*subIDArray*/ ) const;
 
   // Set new geometry instead of that returned by getObjectsDependOn()
   virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
-                                   std::vector< int >         & subIDArray );
+                                   std::vector< int >         & /*subIDArray*/ );
 };
 
 #endif