]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correction of bug in setOptionString.
authorageay <ageay>
Tue, 24 Aug 2010 09:28:45 +0000 (09:28 +0000)
committerageay <ageay>
Tue, 24 Aug 2010 09:28:45 +0000 (09:28 +0000)
src/INTERP_KERNEL/InterpolationOptions.cxx
src/INTERP_KERNEL/InterpolationOptions.hxx

index 6eb93e9aa25a2a2deaed0bb83f388eb8c23c75d4..6069bf22df01a275b65c29fffa1e23a666d04cbb 100644 (file)
@@ -121,7 +121,7 @@ bool INTERP_KERNEL::InterpolationOptions::setOptionInt(const std::string& key, i
       return false;
 }
 
-bool INTERP_KERNEL::InterpolationOptions::setOptionString(const std::string& key, std::string& value)
+bool INTERP_KERNEL::InterpolationOptions::setOptionString(const std::string& key, const std::string& value)
 {
   if(key==INTERSEC_TYPE_STR) 
     {
index 49068a01a9c5c55fc1b9df1615b49b9be5270228..92f483c357a33fea0e547336ecbf4edb245f5b6a 100644 (file)
@@ -121,7 +121,7 @@ namespace INTERP_KERNEL
     void copyOptions(InterpolationOptions & other) { *this = other; }
     bool setOptionDouble(const std::string& key, double value);
     bool setOptionInt(const std::string& key, int value);
-    bool setOptionString(const std::string& key, std::string& value);
+    bool setOptionString(const std::string& key, const std::string& value);
   private:
     static const double DFT_MEDIAN_PLANE;
     static const double DFT_SURF3D_ADJ_EPS;