]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
fight warnings c++17, fix minor warnings. Build GHS3DPLUGIN finished
authorSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 06:52:46 +0000 (09:52 +0300)
committerSALOME <salome@opencascade.com>
Wed, 26 Aug 2020 06:52:46 +0000 (09:52 +0300)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.hxx
src/GHS3DPlugin/GHS3DPlugin_Optimizer.cxx
src/GHS3DPlugin/GHS3DPlugin_Optimizer.hxx
src/GHS3DPlugin/GHS3DPlugin_OptimizerHypothesis.cxx
src/GHS3DPlugin/GHS3DPlugin_OptimizerHypothesis.hxx
src/GHS3DPlugin/MG_Tetra_API.cxx
src/GHS3DPlugin/MG_Tetra_API.hxx
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx

index 1f11791ccbc8c43f11ee6f68292f8b17d9e5d965..b4f61e92d293ed410b568e94c15014ad3dfe11f4 100644 (file)
@@ -440,7 +440,7 @@ static int findShapeID(SMESH_Mesh&          mesh,
 static void addElemInMeshGroup(SMESH_Mesh*             theMesh,
                                const SMDS_MeshElement* anElem,
                                std::string&            groupName,
-                               std::set<std::string>&  groupsToRemove)
+                               std::set<std::string>&  /*groupsToRemove*/)
 {
   if ( !anElem ) return; // issue 0021776
 
@@ -584,7 +584,7 @@ static bool readGMFFile(MG_Tetra_API*                   MGOutput,
                         SMESH_MesherHelper*             theHelper,
                         std::vector <const SMDS_MeshNode*> &    theNodeByGhs3dId,
                         std::vector <const SMDS_MeshElement*> & theFaceByGhs3dId,
-                        map<const SMDS_MeshNode*,int> & theNodeToGhs3dIdMap,
+                        map<const SMDS_MeshNode*,int> & /*theNodeToGhs3dIdMap*/,
                         std::vector<std::string> &      aNodeGroupByGhs3dId,
                         std::vector<std::string> &      anEdgeGroupByGhs3dId,
                         std::vector<std::string> &      aFaceGroupByGhs3dId,
@@ -2871,9 +2871,9 @@ namespace
      */
     void ProcessEvent(const int                       event,
                       const int                       eventType,
-                      SMESH_subMesh*                  subMesh,
+                      SMESH_subMesh*                  /*subMesh*/,
                       SMESH_subMeshEventListenerData* data,
-                      const SMESH_Hypothesis*         hyp)
+                      const SMESH_Hypothesis*         /*hyp*/)
     {
       if ( SMESH_subMesh::SUBMESH_LOADED == event &&
            SMESH_subMesh::COMPUTE_EVENT  == eventType &&
@@ -2913,11 +2913,11 @@ namespace
     /*!
      * \brief Treat events of the subMesh
      */
-    void ProcessEvent(const int                       event,
+    void ProcessEvent(const int                       /*event*/,
                       const int                       eventType,
                       SMESH_subMesh*                  subMesh,
-                      SMESH_subMeshEventListenerData* data,
-                      const SMESH_Hypothesis*         hyp)
+                      SMESH_subMeshEventListenerData* /*data*/,
+                      const SMESH_Hypothesis*         /*hyp*/)
     {
       if (SMESH_subMesh::ALGO_EVENT == eventType &&
           !subMesh->GetAlgo() )
index 2b8824e032a03beb503254a91da8aa54f5dd2a22..7266e64be8d5b7b01c3b42c4b7062224671321f1 100644 (file)
@@ -1219,7 +1219,7 @@ bool GHS3DPlugin_Hypothesis_i::SetEnforcedMesh(SMESH::SMESH_IDSource_ptr theSour
 /*!
  * \brief OBSOLETE FUNCTION - Adds enforced elements of type elementType using another mesh/sub-mesh/mesh group theSource and a size. The elements will be grouped in theGroupName.
  */
-bool GHS3DPlugin_Hypothesis_i::SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, double theSize, const char* theGroupName)
+bool GHS3DPlugin_Hypothesis_i::SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, double /*theSize*/, const char* theGroupName)
   
 {
   return p_SetEnforcedMesh(theSource, theType, "", theGroupName);
@@ -1228,7 +1228,7 @@ bool GHS3DPlugin_Hypothesis_i::SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSourc
 /*!
  * \brief OBSOLETE FUNCTION - Adds enforced elements of type elementType using another mesh/sub-mesh/mesh group theSource and a size.
  */
-bool GHS3DPlugin_Hypothesis_i::SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, double theSize)
+bool GHS3DPlugin_Hypothesis_i::SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType theType, double /*theSize*/)
   
 {
   return p_SetEnforcedMesh(theSource, theType);
@@ -1381,7 +1381,7 @@ CORBA::Boolean GHS3DPlugin_Hypothesis_i::IsDimSupported( SMESH::Dimension type )
 
 bool
 GHS3DPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryArray,
-                                              std::vector< int >         & subIDArray ) const
+                                              std::vector< int >         & /*subIDArray*/ ) const
 {
   typedef ::GHS3DPlugin_Hypothesis THyp;
   const THyp* h = static_cast< const THyp*>( myBaseImpl );
@@ -1442,7 +1442,7 @@ GHS3DPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entry
 
 bool
 GHS3DPlugin_Hypothesis_i::setObjectsDependOn( std::vector< std::string > & entryArray,
-                                              std::vector< int >         & subIDArray )
+                                              std::vector< int >         & /*subIDArray*/ )
 {
   typedef ::GHS3DPlugin_Hypothesis THyp;
   THyp* h = static_cast< THyp*>( myBaseImpl );
index b7644865142c3f40996eec78d5ac7b6d72617aee..d039b6fe87543a963b1b40ab21f828be8d54c15c 100644 (file)
@@ -200,8 +200,8 @@ class GHS3DPLUGIN_EXPORT GHS3DPlugin_Hypothesis_i:
   bool SetEnforcedMeshWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, const char* theGroupName) ;
 
   /* OBSOLETE FUNCTIONS */
-  bool SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double size) ;
-  bool SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double size, const char* theGroupName) ;
+  bool SetEnforcedMeshSize(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double /*size*/) ;
+  bool SetEnforcedMeshSizeWithGroup(SMESH::SMESH_IDSource_ptr theSource, SMESH::ElementType elementType, double /*size*/, const char* theGroupName) ;
   /* OBSOLETE FUNCTIONS */
 
   GHS3DPlugin::GHS3DEnforcedMeshList* GetEnforcedMeshes();
@@ -223,11 +223,11 @@ class GHS3DPLUGIN_EXPORT GHS3DPlugin_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
index b2610795a1d140475ba529d5faee0d2d2c1f21fc..191c489390926b4c2a74bd1969393843867d3e5e 100644 (file)
@@ -84,8 +84,8 @@ void GHS3DPlugin_Optimizer::CancelCompute()
  */
 //================================================================================
 
-bool GHS3DPlugin_Optimizer::Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape,
-                                     MapShapeNbElems& aResMap)
+bool GHS3DPlugin_Optimizer::Evaluate(SMESH_Mesh& /*aMesh*/, const TopoDS_Shape& /*aShape*/,
+                                     MapShapeNbElems& /*aResMap*/)
 {
   return false;
 }
@@ -95,7 +95,7 @@ bool GHS3DPlugin_Optimizer::Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aSha
  */
 //================================================================================
 
-bool GHS3DPlugin_Optimizer::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape)
+bool GHS3DPlugin_Optimizer::Compute(SMESH_Mesh & /*aMesh*/, const TopoDS_Shape & /*aShape*/)
 {
   return false;
 }
index 21c09a2ece635a04f10b9ca1cbac71559c8cf43b..fd8d21c432db2773549620e7ba720fca6b55fa30 100644 (file)
@@ -39,13 +39,13 @@ public:
   virtual void CancelCompute();
   bool         computeCanceled() { return _computeCanceled; }
 
-  virtual bool Evaluate(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape,
-                        MapShapeNbElems& aResMap);
+  virtual bool Evaluate(SMESH_Mesh& /*aMesh*/, const TopoDS_Shape& /*aShape*/,
+                        MapShapeNbElems& /*aResMap*/);
 
   virtual bool Compute(SMESH_Mesh&         theMesh,
                        SMESH_MesherHelper* theHelper);
-  virtual bool Compute(SMESH_Mesh &         aMesh,
-                       const TopoDS_Shape & aShape);
+  virtual bool Compute(SMESH_Mesh &        /*aMesh*/,
+                       const TopoDS_Shape & /*aShape*/);
 
   static const char* Name() { return "MG-Tetra Optimization"; }
 
index 5dc0fb4fe4c7a0cfe7653954831aadfab74bae99..eea711b1e34ea6e4349e3ea23056a6d70b7eef28 100644 (file)
@@ -139,14 +139,14 @@ std::istream & GHS3DPlugin_OptimizerHypothesis::LoadFrom(std::istream & load)
   return load;
 }
 
-bool GHS3DPlugin_OptimizerHypothesis::SetParametersByMesh(const SMESH_Mesh*   theMesh,
-                                                          const TopoDS_Shape& theShape)
+bool GHS3DPlugin_OptimizerHypothesis::SetParametersByMesh(const SMESH_Mesh*   /*theMesh*/,
+                                                          const TopoDS_Shape& /*theShape*/)
 {
   return false;
 }
 
-bool GHS3DPlugin_OptimizerHypothesis::SetParametersByDefaults(const TDefaults&  theDflts,
-                                                              const SMESH_Mesh* theMesh)
+bool GHS3DPlugin_OptimizerHypothesis::SetParametersByDefaults(const TDefaults&  /*theDflts*/,
+                                                              const SMESH_Mesh* /*theMesh*/)
 {
   return false;
 }
index d981c09f820c0feacb8b26613a4e8155fb9f72a8..12f7dfc3f10dd17a3309a0ff29d0cdee5197350a 100644 (file)
@@ -68,8 +68,8 @@ public:
   /*!
    * \brief Does nothing
    */
-  virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
-  virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
+  virtual bool SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, const TopoDS_Shape& /*theShape*/);
+  virtual bool SetParametersByDefaults(const TDefaults& /*dflts*/, const SMESH_Mesh* /*theMesh=0*/);
 
   static std::string CommandToRun(const GHS3DPlugin_OptimizerHypothesis* hyp);
 
index c19938fde53dfd1733557962bdbddc0f351c57f1..3e39d27dd501a5ddd22f88b6fda7d160bc269186 100644 (file)
@@ -888,7 +888,7 @@ void MG_Tetra_API::GmfGotoKwd( int iMesh, GmfKwdCod what )
  */
 //================================================================================
 
-void MG_Tetra_API::GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int dummy )
+void MG_Tetra_API::GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int /*dummy*/ )
 {
   if ( _useLib ) {
 #ifdef USE_MG_LIBS
index a1dc4ac4ff9ce97439b2e02ec50fae058bd7ad5e..858d9a1df6ae32198e3cddf71dbcf3d33335dbe8 100644 (file)
@@ -59,7 +59,7 @@ public:
   int  GmfOpenMesh(const char* theFile, int rdOrWr, int * ver, int * dim);
   int  GmfStatKwd( int iMesh, GmfKwdCod what );
   void GmfGotoKwd( int iMesh, GmfKwdCod what );
-  void GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int dummy );
+  void GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int /*dummy*/ );
   void GmfGetLin(int iMesh, GmfKwdCod what, float* x, float* y, float *z, int* domain );
   void GmfGetLin(int iMesh, GmfKwdCod what, double* x, double* y, double *z, int* domain );
   void GmfGetLin(int iMesh, GmfKwdCod what, int* node );
index b322ba47350d099dd85268aa23f05ec8c7bcbaf7..23dc087c0c4bc7798cb6bd98aa64ed2196c84366 100644 (file)
@@ -1365,7 +1365,7 @@ void GHS3DPluginGUI_HypothesisCreator::onRemoveEnforcedVertex()
   myEnforcedTableWidget->selectionModel()->clearSelection();
 }
 
-void GHS3DPluginGUI_HypothesisCreator::onToMeshHoles(bool isOn)
+void GHS3DPluginGUI_HypothesisCreator::onToMeshHoles(bool /*isOn*/)
 {
   // myToMakeGroupsOfDomains->setEnabled( isOn );
   // if ( !isOn )