From bcc420640e8ad75384b14c68cafb743cff10d135 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 17 Feb 2011 14:40:30 +0000 Subject: [PATCH] Remove warnings --- src/GHS3DPlugin_Hypothesis.cxx | 2 +- src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ]; } -- 2.39.2