From: adam Date: Thu, 17 Feb 2011 14:40:30 +0000 (+0000) Subject: Remove warnings X-Git-Tag: Start_BR_19998_21191~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bcc420640e8ad75384b14c68cafb743cff10d135;p=plugins%2Fhybridplugin.git Remove warnings --- diff --git a/src/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin_Hypothesis.cxx index c78e536..5079333 100644 --- a/src/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin_Hypothesis.cxx @@ -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 ]; } diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index a282bc3..e716b43 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -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 ]; }