]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
fight warnings c++17, fix minor warnings. Build NETGENPLUGIN finished
authorSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 05:59:41 +0000 (08:59 +0300)
committerSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 05:59:41 +0000 (08:59 +0300)
13 files changed:
src/GUI/NETGENPluginGUI_HypothesisCreator.cxx
src/GUI/NETGENPluginGUI_HypothesisCreator.h
src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx
src/NETGENPlugin/NETGENPlugin_Hypothesis.hxx
src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx
src/NETGENPlugin/NETGENPlugin_Hypothesis_i.hxx
src/NETGENPlugin/NETGENPlugin_Mesher.cxx
src/NETGENPlugin/NETGENPlugin_Mesher.hxx
src/NETGENPlugin/NETGENPlugin_Remesher_2D.cxx
src/NETGENPlugin/NETGENPlugin_Remesher_2D.hxx
src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.cxx
src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D_i.hxx
src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_3D_i.hxx

index 2fa8a999b4111be2fc6ad19fa83211c5c09a44f8..08f59621d20dd2a02db1dd447ff76dbc1f290cc1 100644 (file)
@@ -116,7 +116,7 @@ NETGENPluginGUI_HypothesisCreator::~NETGENPluginGUI_HypothesisCreator()
 {
 }
 
-bool NETGENPluginGUI_HypothesisCreator::checkParams(QString& msg) const
+bool NETGENPluginGUI_HypothesisCreator::checkParams(QString& /*msg*/) const
 {
   NetgenHypothesisData data_old, data_new;
   readParamsFromHypo( data_old );
index 48461728732cc62ac905ab5f6a5d4099d533960e..89004b88e14a95c6ad47145e55c0a26e1755bd8f 100644 (file)
@@ -63,7 +63,7 @@ public:
   NETGENPluginGUI_HypothesisCreator( const QString& );
   virtual ~NETGENPluginGUI_HypothesisCreator();
 
-  virtual bool     checkParams(QString& msg) const;
+  virtual bool     checkParams(QString& /*msg*/) const;
   virtual QString  helpPage() const;
 
 protected:
index 2eabac4207ef274318c5ee02e1cde055f010f708..8c58e3b360a24a81bda87c923ba6d937d96f0939 100644 (file)
@@ -642,8 +642,8 @@ istream & NETGENPlugin_Hypothesis::LoadFrom(istream & load)
  * \retval bool - always false
  */
 //================================================================================
-bool NETGENPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   theMesh,
-                                                  const TopoDS_Shape& theShape)
+bool NETGENPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   /*theMesh*/,
+                                                  const TopoDS_Shape& /*theShape*/)
 {
   return false;
 }
index 37009f6a5e0fabeb4c27820f445fdba7f759308d..7b8afae17b62e5c446b44c315d42c01776004c66 100644 (file)
@@ -156,7 +156,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 367cb6deb61aa3711befcb17f86996a78578ba8a..fa4b04c1820a95d8d7bd4759d61d34b5ecde37a0 100644 (file)
@@ -711,7 +711,7 @@ std::string NETGENPlugin_Hypothesis_i::getMethodOfParameter(const int paramIndex
 
 bool
 NETGENPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryArray,
-                                               std::vector< int >         & subIDArray ) const
+                                               std::vector< int >         & /*subIDArray*/ ) const
 {
   typedef ::NETGENPlugin_Hypothesis THyp;
 
@@ -733,7 +733,7 @@ NETGENPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entr
 
 bool
 NETGENPlugin_Hypothesis_i::setObjectsDependOn( std::vector< std::string > & entryArray,
-                                               std::vector< int >         & subIDArray )
+                                               std::vector< int >         & /*subIDArray*/ )
 {
   typedef ::NETGENPlugin_Hypothesis THyp;
 
index e38b80908d62fab71a247cc7083c9d0133102f83..614bf6e972ca80e73ee3a031cf28f82d7ef550a3 100644 (file)
@@ -133,11 +133,11 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_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*/ );
 
  protected:
 
index 8caf0bf4e127c34aabcd187d0d7da3a21e2416c0..48d6383e1ec9da76d4a80e0492b1bae9aa7f63fc 100644 (file)
@@ -205,7 +205,7 @@ namespace
 
   list< TopoDS_Edge > getConnectedEdges( const TopoDS_Edge&                 edge,
                                          const TopoDS_Face&                 face,
-                                         const set< SMESH_subMesh* > &      computedSM,
+                                         const set< SMESH_subMesh* > &      /*computedSM*/,
                                          const SMESH_MesherHelper&          helper,
                                          map< SMESH_subMesh*, set< int > >& addedEdgeSM2Faces)
   {
@@ -3712,7 +3712,7 @@ bool NETGENPlugin_Mesher::Evaluate(MapShapeNbElems& aResMap)
   return true;
 }
 
-double NETGENPlugin_Mesher::GetProgress(const SMESH_Algo* holder,
+double NETGENPlugin_Mesher::GetProgress(const SMESH_Algo* /*holder*/,
                                         const int *       algoProgressTic,
                                         const double *    algoProgress) const
 {
index 9299dca06b095fbcf639106d71da4ac4bbe896a9..1d4e62b1fdbb1db049655e606d374c6e218f5974 100644 (file)
@@ -132,7 +132,7 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Mesher
 
   bool Evaluate(MapShapeNbElems& aResMap);
 
-  double GetProgress(const SMESH_Algo* holder,
+  double GetProgress(const SMESH_Algo* /*holder*/,
                      const int *       algoProgressTic,
                      const double *    algoProgress) const;
 
index c51e06fa03df31155031e7a71281e2aa6a90d644..6c662b343aaf92f83bad667ddabad9d41f0384f9 100644 (file)
@@ -852,8 +852,8 @@ bool NETGENPlugin_Remesher_2D::Compute(SMESH_Mesh&         theMesh,
  */
 //=============================================================================
 
-bool NETGENPlugin_Remesher_2D::Compute(SMESH_Mesh&         theMesh,
-                                       const TopoDS_Shape& theShape)
+bool NETGENPlugin_Remesher_2D::Compute(SMESH_Mesh&         /*theMesh*/,
+                                       const TopoDS_Shape& /*theShape*/)
 {
   return false;
 }
@@ -887,9 +887,9 @@ double NETGENPlugin_Remesher_2D::GetProgress() const
  */
 //=============================================================================
 
-bool NETGENPlugin_Remesher_2D::Evaluate(SMESH_Mesh&         aMesh,
-                                        const TopoDS_Shape& aShape,
-                                        MapShapeNbElems& aResMap)
+bool NETGENPlugin_Remesher_2D::Evaluate(SMESH_Mesh&         /*aMesh*/,
+                                        const TopoDS_Shape& /*aShape*/,
+                                        MapShapeNbElems& /*aResMap*/)
 {
   return false;
 }
index b1fad2a03c2718d8c24ce7924c5cf9b4fc67d01a..3cb6f57218815253a10cd1bdeb62c7d55069d273 100644 (file)
@@ -43,16 +43,16 @@ class NETGENPLUGIN_EXPORT NETGENPlugin_Remesher_2D: public SMESH_2D_Algo
 
   virtual bool Compute(SMESH_Mesh & theMesh, SMESH_MesherHelper* theHelper);
 
-  virtual bool Compute(SMESH_Mesh& theMesh, const TopoDS_Shape& theShape);
+  virtual bool Compute(SMESH_Mesh& /*theMesh*/, const TopoDS_Shape& /*theShape*/);
 
   virtual void CancelCompute();
 
   virtual double GetProgress() const;
 
 
-  virtual bool Evaluate(SMESH_Mesh&         theMesh,
-                        const TopoDS_Shape& theShape,
-                        MapShapeNbElems&    theResMap);
+  virtual bool Evaluate(SMESH_Mesh&         /*theMesh*/,
+                        const TopoDS_Shape& /*theShape*/,
+                        MapShapeNbElems&    /*theResMap*/);
 
  protected:
 
index aa57fbf7e5ab3f5906663704d38729dad5540401..dbd3b98cb8023ca8cab9c961b660c27b8ac645ef 100644 (file)
@@ -236,7 +236,7 @@ int NETGENPlugin_SimpleHypothesis_2D_i::getParamIndex(const TCollection_AsciiStr
 //================================================================================
 
 std::string NETGENPlugin_SimpleHypothesis_2D_i::getMethodOfParameter(const int paramIndex,
-                                                                     int nbVars) const
+                                                                     int /*nbVars*/) const
 {
   switch ( paramIndex ) {
   case 0: return GetImpl()->GetNumberOfSegments() ? "SetNumberOfSegments" : "SetLocalLength";
index 148169c2f5695a93fc0bdc960a6c32ce6a82e6d9..dcd47ed3d0e53155c892b7f87a4ce5eef22aa5be 100644 (file)
@@ -79,18 +79,18 @@ class NETGENPLUGIN_EXPORT  NETGENPlugin_SimpleHypothesis_2D_i:
   // method used to convert variable parameters stored in an old study
   // into myMethod2VarParams. It should return a method name for an index of
   // variable parameters. Index is countered from zero
-  virtual std::string getMethodOfParameter(const int paramIndex, int nbVars) const;
+  virtual std::string getMethodOfParameter(const int paramIndex, int /*nbVars*/) const;
 
 
   // Methods for copying mesh definition to other geometry
 
   // 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 { return 0; }
+  virtual bool getObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) const { return 0; }
 
   // Set new geometry instead of that returned by getObjectsDependOn()
-  virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
-                                   std::vector< int >         & subIDArray ) { return true; }
+  virtual bool setObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) { return true; }
 };
 
 #endif
index e6f84965c2ab6673708295dc0a447124fceb392c..4994e54f91afe39de4fe21a76dd289bcfe2475bc 100644 (file)
@@ -63,12 +63,12 @@ class NETGENPLUGIN_EXPORT  NETGENPlugin_SimpleHypothesis_3D_i:
   // Methods for copying mesh definition to other geometry
 
   // 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 { return 0; }
+  virtual bool getObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) const { return 0; }
 
   // Set new geometry instead of that returned by getObjectsDependOn()
-  virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
-                                   std::vector< int >         & subIDArray ) { return true; }
+  virtual bool setObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) { return true; }
 };
 
 #endif