Salome HOME
dynamic_log_messages: Fixed compilation errors because of forgotten semicolons after... kleontev/dynamic_log_messages
authorKonstantin LEONTEV <kleontev@ubuntu2004-01.nnov.opencascade.com>
Tue, 11 Oct 2022 12:57:16 +0000 (15:57 +0300)
committerKonstantin LEONTEV <kleontev@ubuntu2004-01.nnov.opencascade.com>
Tue, 11 Oct 2022 12:57:16 +0000 (15:57 +0300)
src/OBJECT/SMESH_Object.cxx
src/SMESH/SMESH_MesherHelper.cxx
src/SMESHGUI/SMESHGUI_HomardBoundaryDlg.cxx
src/SMESHUtils/SMESH_MGLicenseKeyGen.cxx
src/SMESH_I/SMESH_Gen_i.cxx
src/SMESH_I/SMESH_Gen_i_1.cxx

index 23b782a8a9c94b533bb977399d6e3fca9b94ebfd..c16eb7fcc8f2f264f5dd4f89f0cd13a0dda589a5 100644 (file)
@@ -855,7 +855,7 @@ void SMESH_SubMeshObj::UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunc
 //=================================================================================
 bool SMESH_SubMeshObj::Update( int theIsClear )
 {
-  if ( MYDEBUG ) MESSAGE("SMESH_SubMeshObj::Update " << this)
+  if ( MYDEBUG ) MESSAGE("SMESH_SubMeshObj::Update " << this);
   bool changed = myMeshObj->Update( theIsClear );
   buildPrs(true);
   return changed;
index 28ef9ae55a06300ba1bf87064e5c6f99cc29a7ec..9d67ec22d4cc36a8af0af89505ac751cb2d3a485 100644 (file)
@@ -4996,10 +4996,9 @@ void SMESH_MesherHelper::FixQuadraticElements(SMESH_ComputeErrorPtr& compError,
       }
     }
     // fix nodes on geom faces
-#ifdef _DEBUG_
-    int nbfaces = nbSolids;
-    nbfaces = faces.Extent(); /*avoid "unused varianbles": */ nbfaces++, nbfaces--;
-#endif
+
+    int nbfaces = faces.Extent();
+    
     for ( TopTools_MapIteratorOfMapOfShape fIt( faces ); fIt.More(); fIt.Next() ) {
       MESSAGE("FIX FACE " << nbfaces-- << " #" << GetMeshDS()->ShapeToIndex(fIt.Key()));
       MSG("FIX FACE " << nbfaces-- << " #" << GetMeshDS()->ShapeToIndex(fIt.Key()));
index 75aad174cd3c050f27d1fda59c577a0928d09807..7d66f7ba54cee73dd94678036e5405141018043d 100644 (file)
@@ -540,7 +540,7 @@ void SMESH_CreateBoundaryAn::SetNewName()
 void SMESH_CreateBoundaryAn::SetCylinder()
 // ------------------------------------------------------------------------
 {
-  MESSAGE("Debut de SetCylinder")
+  MESSAGE("Debut de SetCylinder");
   gBCylindre->setVisible(1);
   gBSphere->setVisible(0);
   gBCone->setVisible(0);
@@ -555,7 +555,7 @@ void SMESH_CreateBoundaryAn::SetCylinder()
 void SMESH_CreateBoundaryAn::SetSphere()
 // ------------------------------------------------------------------------
 {
-  MESSAGE("Debut de SetSphere")
+  MESSAGE("Debut de SetSphere");
   gBCylindre->setVisible(0);
   gBSphere->setVisible(1);
   gBCone->setVisible(0);
@@ -570,7 +570,7 @@ void SMESH_CreateBoundaryAn::SetSphere()
 void SMESH_CreateBoundaryAn::SetConeR()
 // ------------------------------------------------------------------------
 {
-  MESSAGE("Debut de SetConeR")
+  MESSAGE("Debut de SetConeR");
 //
 // Stockage et conversion des valeurs si elles ont change
   if ((_BoundaryAnXaxisCone != SpinBox_Cone_X1->value())  ||
@@ -581,7 +581,7 @@ void SMESH_CreateBoundaryAn::SetConeR()
       (_BoundaryAnZorigCone != SpinBox_Cone_Z2->value())  ||
       (_BoundaryAngle       != SpinBox_Cone_V1->value()) )
   {
-    MESSAGE("Stockage et conversion")
+    MESSAGE("Stockage et conversion");
     _BoundaryAnXaxisCone = SpinBox_Cone_X1->value() ;
     _BoundaryAnYaxisCone = SpinBox_Cone_Y1->value() ;
     _BoundaryAnZaxisCone = SpinBox_Cone_Z1->value() ;
@@ -624,7 +624,7 @@ void SMESH_CreateBoundaryAn::SetConeR()
 void SMESH_CreateBoundaryAn::SetConeA()
 // ------------------------------------------------------------------------
 {
-  MESSAGE("Debut de SetConeA")
+  MESSAGE("Debut de SetConeA");
 // Stockage et conversion des valeurs si elles ont change
   if ((_BoundaryAnXcone1 != SpinBox_Cone_X1->value())  ||
       (_BoundaryAnYcone1 != SpinBox_Cone_Y1->value())  ||
@@ -635,7 +635,7 @@ void SMESH_CreateBoundaryAn::SetConeA()
       (_BoundaryAnZcone2 != SpinBox_Cone_Z2->value())  ||
       (_BoundaryAnRayon2 != SpinBox_Cone_V2->value()) )
   {
-    MESSAGE("Stockage et conversion")
+    MESSAGE("Stockage et conversion");
     _BoundaryAnXcone1 = SpinBox_Cone_X1->value() ;
     _BoundaryAnYcone1 = SpinBox_Cone_Y1->value() ;
     _BoundaryAnZcone1 = SpinBox_Cone_Z1->value() ;
@@ -678,7 +678,7 @@ void SMESH_CreateBoundaryAn::SetConeA()
 void SMESH_CreateBoundaryAn::SetCone()
 // ------------------------------------------------------------------------
 {
-  MESSAGE("Debut de SetCone")
+  MESSAGE("Debut de SetCone");
   gBCylindre->setVisible(0);
   gBSphere->setVisible(0);
   gBCone->setVisible(1);
@@ -700,7 +700,7 @@ void SMESH_CreateBoundaryAn::SetCone()
 void SMESH_CreateBoundaryAn::SetTore()
 // ------------------------------------------------------------------------
 {
-  MESSAGE("Debut de SetTore")
+  MESSAGE("Debut de SetTore");
   gBCylindre->setVisible(0);
   gBSphere->setVisible(0);
   gBCone->setVisible(0);
@@ -718,7 +718,7 @@ void SMESH_CreateBoundaryAn::convertRayonAngle(int option)
 // par deux rayons ou avec un axe et un angle.
 // Voir sfcoi1 de HOMARD
 {
-  MESSAGE("Debut de convertRayonAngle, option = "<<option)
+  MESSAGE("Debut de convertRayonAngle, option = "<<option);
 //
 //         o
 //         !    .
@@ -814,7 +814,7 @@ SMESH_CreateBoundaryCAO::SMESH_CreateBoundaryCAO(SMESHGUI_HomardAdaptDlg* parent
     _parent(parent), _aName(aName),
     myHomardGen(SMESHHOMARD::HOMARD_Gen::_duplicate(myHomardGen0))
     {
-      MESSAGE("Constructeur") ;
+      MESSAGE("Constructeur");
       setupUi(this);
       setModal(modal);
       InitConnect();
index 1b5655e0c934686e5ab8345af3295ed7d473af85..01a926b243a8a21feea56b2f7b2270966116d967 100644 (file)
@@ -309,7 +309,7 @@ namespace
       buffer[length] = '\0';
       infile.read(const_cast<char *>( buffer.get() ),length);
 
-      MESSAGE( buffer.get() )
+      MESSAGE( buffer.get() );
     }
     {
       SMESH_File redirectFile( redirect, /*open=*/false );
index cfc7c95b5185cb14e657b636cfb357974db1aace..a298530ea554c28f9c780686dee0d55c069e74aa 100644 (file)
@@ -6125,7 +6125,7 @@ char* SMESH_Gen_i::IORToLocalPersistentID( SALOMEDS::SObject_ptr /*theSObject*/,
   if ( myStudyContext && strcmp( IORString, "" ) != 0 ) {
     int anId = myStudyContext->findId( IORString );
     if ( anId ) {
-      if(MYDEBUG) MESSAGE( "VSR " << anId )
+      if(MYDEBUG) MESSAGE( "VSR " << anId );
       char strId[ 20 ];
       sprintf( strId, "%d", anId );
       return  CORBA::string_dup( strId );
index 0896c5dc2354e23721b61161fbbc773c18314818..aeb0879d8fb386d9914574d9320d6b4845c8d825 100644 (file)
@@ -935,7 +935,7 @@ SMESH_Gen_i::PublishHypothesis (SMESH::SMESH_Hypothesis_ptr theHyp,
 
   SetName( aHypSO, theName, hypType.in() );
 
-  if(MYDEBUG) MESSAGE("PublishHypothesis--END")
+  if(MYDEBUG) MESSAGE("PublishHypothesis--END");
   return aHypSO._retn();
 }
 
@@ -1097,7 +1097,7 @@ SALOMEDS::SObject_ptr
 SMESH_Gen_i::GetMeshOrSubmeshByShape (SMESH::SMESH_Mesh_ptr theMesh,
                                       GEOM::GEOM_Object_ptr theShape)
 {
-  if(MYDEBUG) MESSAGE("GetMeshOrSubmeshByShape")
+  if(MYDEBUG) MESSAGE("GetMeshOrSubmeshByShape");
   SALOMEDS::SObject_wrap aMeshOrSubMesh;
   if (theMesh->_is_nil() || ( theShape->_is_nil() && theMesh->HasShapeToMesh()))
     return aMeshOrSubMesh._retn();
@@ -1121,7 +1121,7 @@ SMESH_Gen_i::GetMeshOrSubmeshByShape (SMESH::SMESH_Mesh_ptr theMesh,
         aMeshOrSubMesh = ObjectToSObject( aSubMesh );
     }
   }
-  if(MYDEBUG) MESSAGE("GetMeshOrSubmeshByShape--END")
+  if(MYDEBUG) MESSAGE("GetMeshOrSubmeshByShape--END");
   return aMeshOrSubMesh._retn();
 }
 
@@ -1134,7 +1134,7 @@ bool SMESH_Gen_i::AddHypothesisToShape(SMESH::SMESH_Mesh_ptr       theMesh,
                                        GEOM::GEOM_Object_ptr       theShape,
                                        SMESH::SMESH_Hypothesis_ptr theHyp)
 {
-  if(MYDEBUG) MESSAGE("AddHypothesisToShape")
+  if(MYDEBUG) MESSAGE("AddHypothesisToShape");
   if (theMesh->_is_nil() ||
       theHyp->_is_nil() || (theShape->_is_nil()
                             && theMesh->HasShapeToMesh()) )
@@ -1175,7 +1175,7 @@ bool SMESH_Gen_i::AddHypothesisToShape(SMESH::SMESH_Mesh_ptr       theMesh,
 
   addReference( AHR, theHyp );
 
-  if(MYDEBUG) MESSAGE("AddHypothesisToShape--END")
+  if(MYDEBUG) MESSAGE("AddHypothesisToShape--END");
   return true;
 }