]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Remove warnings
authoradam <adam>
Thu, 17 Feb 2011 14:40:30 +0000 (14:40 +0000)
committeradam <adam>
Thu, 17 Feb 2011 14:40:30 +0000 (14:40 +0000)
src/GHS3DPlugin_Hypothesis.cxx
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx

index c78e5364405d7320059657624b8b76d101e3e0a2..5079333ad5ab0b466f6c6b4381cc826419968486 100644 (file)
@@ -798,7 +798,7 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
   // optimization level
   if ( o && hyp && !useBndRecovery ) {
     if ( hyp->myOptimizationLevel >= 0 && hyp->myOptimizationLevel < 5 ) {
-      char* level[] = { "none" , "light" , "standard" , "standard+" , "strong" };
+      const char* level[] = { "none" , "light" , "standard" , "standard+" , "strong" };
       cmd += " -o ";
       cmd += level[ hyp->myOptimizationLevel ];
     }
index a282bc3ddd3d1bb1191714b50f8cd31fc92d1dfa..e716b43b0b03b703c9bfb6dfa526e4c287d881e0 100644 (file)
@@ -550,7 +550,7 @@ QString GHS3DPluginGUI_HypothesisCreator::storeParams() const
         valStr = "-c " + QString::number( !data.myToMeshHoles );
     
     if ( data.myOptimizationLevel >= 0 && data.myOptimizationLevel < 5 && !data.myBoundaryRecovery) {
-        char* level[] = { "none" , "light" , "standard" , "standard+" , "strong" };
+        const char* level[] = { "none" , "light" , "standard" , "standard+" , "strong" };
         valStr += " -o ";
         valStr += level[ data.myOptimizationLevel ];
     }