Salome HOME
remove "using namespace std" from SMESH headers V8_0_0_BR V8_0_0 V8_0_0rc2
authoreap <eap@opencascade.com>
Mon, 15 Feb 2016 14:21:37 +0000 (17:21 +0300)
committervsr <vsr@opencascade.com>
Sat, 20 Feb 2016 08:23:36 +0000 (11:23 +0300)
src/GUI/HexoticPluginGUI_HypothesisCreator.cxx
src/HexoticPlugin/HexoticPlugin_Hexotic.cxx
src/HexoticPlugin/HexoticPlugin_Hypothesis_i.cxx

index 2d3e8f63302bb16c7aa9a9998aad659d41162a6e..f32312ec24182ffeda4d246764bd17cfc51e117e 100644 (file)
@@ -263,7 +263,7 @@ QFrame* HexoticPluginGUI_HypothesisCreator::buildFrame()
   }
   else
   {
-       myVLWidget->labelFacesWithLayers->setVisible(false);
+        myVLWidget->labelFacesWithLayers->setVisible(false);
     myVLWidget->myFacesWithLayers->setVisible(false);
     myVLWidget->labelImprintedFaces->setVisible(false);
     myVLWidget->myImprintedFaces->setVisible(false);
@@ -294,7 +294,7 @@ QFrame* HexoticPluginGUI_HypothesisCreator::buildFrame()
 void HexoticPluginGUI_HypothesisCreator::onAddLocalSize()
 {
   int rowCount = mySmpWidget->tableWidget->rowCount();
-  int columnCount = mySmpWidget->tableWidget->columnCount();
+  //int columnCount = mySmpWidget->tableWidget->columnCount();
   
   // Get the selected object properties
   GEOM::GEOM_Object_var sizeMapObject = myGeomSelWdg->GetObject< GEOM::GEOM_Object >(0);
@@ -488,13 +488,13 @@ void HexoticPluginGUI_HypothesisCreator::retrieveParams() const
   std::vector<int> vector = data.myFacesWithLayers;
   SMESH::long_array_var aVec = new SMESH::long_array;
   aVec->length(vector.size());
-  for (int i = 0; i < vector.size(); i++)
+  for (size_t i = 0; i < vector.size(); i++)
     aVec[i]=vector.at(i);
   myVLWidget->myFacesWithLayers->SetListOfIDs(aVec);
   vector = data.myImprintedFaces;
   aVec = new SMESH::long_array;
   aVec->length(vector.size());
-  for (int i = 0; i < vector.size(); i++)
+  for (size_t i = 0; i < vector.size(); i++)
     aVec[i]=vector.at(i);
   myVLWidget->myImprintedFaces->SetListOfIDs(aVec);
 
@@ -581,7 +581,7 @@ bool HexoticPluginGUI_HypothesisCreator::readParamsFromHypo( HexoticHypothesisDa
   
   // Size maps
   HexoticPlugin::HexoticPluginSizeMapsList_var sizeMaps = h->GetSizeMaps();
-  for ( int i = 0 ; i < sizeMaps->length() ; i++) 
+  for ( CORBA::ULong i = 0 ; i < sizeMaps->length() ; i++) 
   {
     HexoticPlugin::HexoticPluginSizeMap aSizeMap = sizeMaps[i];
     std::string entry = CORBA::string_dup(aSizeMap.entry.in());
@@ -596,10 +596,10 @@ bool HexoticPluginGUI_HypothesisCreator::readParamsFromHypo( HexoticHypothesisDa
   h_data.myDirection = h->GetDirection();
   h_data.myGrowth = h->GetGrowth();
   SMESH::long_array_var vector = h->GetFacesWithLayers();
-  for (int i = 0; i < vector->length(); i++)
+  for ( CORBA::ULong i = 0; i < vector->length(); i++)
     h_data.myFacesWithLayers.push_back(vector[i]);
   vector = h->GetImprintedFaces();
-  for (int i = 0; i < vector->length(); i++)
+  for ( CORBA::ULong i = 0; i < vector->length(); i++)
     h_data.myImprintedFaces.push_back(vector[i]);
 
   return true;
@@ -653,14 +653,14 @@ bool HexoticPluginGUI_HypothesisCreator::storeParamsToHypo( const HexoticHypothe
     std::vector<int> vector = h_data.myFacesWithLayers;
     SMESH::long_array_var aVec = new SMESH::long_array;
     aVec->length(vector.size());
-    for (int i = 0; i < vector.size(); i++)
+    for ( size_t i = 0; i < vector.size(); i++)
       aVec[i]=vector.at(i);
     h->SetFacesWithLayers( aVec );
     
     vector = h_data.myImprintedFaces;
     aVec = new SMESH::long_array;
     aVec->length(vector.size());
-    for (int i = 0; i < vector.size(); i++)
+    for ( size_t i = 0; i < vector.size(); i++)
       aVec[i]=vector.at(i);
     h->SetImprintedFaces( aVec );
   }
@@ -703,10 +703,10 @@ bool HexoticPluginGUI_HypothesisCreator::readParamsFromWidgets( HexoticHypothesi
   h_data.myDirection = myVLWidget->myDirection->currentIndex() == 0 ? true : false;
   h_data.myGrowth = myVLWidget->myGrowth->text().isEmpty() ? 0.0 : myVLWidget->myGrowth->value();
   SMESH::long_array_var ids = myVLWidget->myFacesWithLayers->GetListOfIDs();
-  for (int i = 0; i < ids->length(); i++)
+  for ( CORBA::ULong i = 0; i < ids->length(); i++)
     h_data.myFacesWithLayers.push_back( ids[i] );
   ids = myVLWidget->myImprintedFaces->GetListOfIDs();
-  for (int i = 0; i < ids->length(); i++)
+  for ( CORBA::ULong i = 0; i < ids->length(); i++)
     h_data.myImprintedFaces.push_back( ids[i] );
 
   printData(h_data);
index 8bd090d9d226aff48976c80366a44ce4afcd7bab..73ef7d120485eab4de31bb056f7a1dad6ebfda3f 100644 (file)
@@ -1468,7 +1468,7 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh&          aMesh,
 
   // to prevent from displaying error message after computing,
   // SetIsAlwaysComputed( true ) to empty sub-meshes
-  vector< SMESH_subMesh* > subMeshesAlwaysComp;
+  std::vector< SMESH_subMesh* > subMeshesAlwaysComp;
   for ( int i = 0; i < _nbShape; ++i )
     if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( aShape ))
     {
index a02028dc95032405218a234580a22ecfa56de0b0..7f6839718bd47b8b1343c3a7ad58cbb0d04e98d6 100644 (file)
@@ -172,8 +172,8 @@ void HexoticPlugin_Hypothesis_i::SetHexoticWorkingDirectory(const char* path) th
     THROW_SALOME_CORBA_EXCEPTION( "Null working directory",SALOME::BAD_PARAM );
 
   ASSERT(myBaseImpl);
-  string file(path);
-  string oldValue(GetHexoticWorkingDirectory());
+  std::string file(path);
+  std::string oldValue(GetHexoticWorkingDirectory());
   bool doDump = false;
   if (oldValue != file)
     doDump = true;
@@ -226,7 +226,7 @@ void HexoticPlugin_Hypothesis_i::SetTextOptions(const char* theOptions)
 {
   // MESSAGE("HexoticPlugin_Hypothesis_i::SetTextOptions");
   ASSERT(myBaseImpl);
-  string oldValue(GetTextOptions());
+  std::string oldValue(GetTextOptions());
   this->GetImpl()->SetTextOptions(theOptions);
   if (theOptions != oldValue)
     SMESH::TPythonDump() << _this() << ".SetTextOptions( '" << theOptions << "' )";
@@ -234,7 +234,7 @@ void HexoticPlugin_Hypothesis_i::SetTextOptions(const char* theOptions)
 
 HexoticPlugin::HexoticPluginSizeMapsList* HexoticPlugin_Hypothesis_i::GetSizeMaps ()
 {
-  // Get the std::map < string entry, double size >
+  // Get the std::map < std::string entry, double size >
   HexoticPlugin::HexoticPluginSizeMapsList_var result = new HexoticPlugin::HexoticPluginSizeMapsList();
   const ::HexoticPlugin_Hypothesis::THexoticSizeMaps sizeMaps = this->GetImpl()->GetSizeMaps();
   result->length( sizeMaps.size() );
@@ -326,7 +326,7 @@ void HexoticPlugin_Hypothesis_i::SetGrowth(CORBA::Double theVal)
 void HexoticPlugin_Hypothesis_i::SetFacesWithLayers(const ::SMESH::long_array& theVal)
 {
   // MESSAGE("HexoticPlugin_Hypothesis_i::SetFacesWithLayers");
-  vector<int> ids( theVal.length() );
+  std::vector<int> ids( theVal.length() );
   for ( unsigned i = 0; i < ids.size(); ++i )
    ids[i] = theVal[i];
 
@@ -338,7 +338,7 @@ void HexoticPlugin_Hypothesis_i::SetFacesWithLayers(const ::SMESH::long_array& t
 void HexoticPlugin_Hypothesis_i::SetImprintedFaces(const ::SMESH::long_array& theVal)
 {
   // MESSAGE("HexoticPlugin_Hypothesis_i::SetImprintedFaces");
-  vector<int> ids( theVal.length() );
+  std::vector<int> ids( theVal.length() );
   for ( unsigned i = 0; i < ids.size(); ++i )
    ids[i] = theVal[i];