From: ageay Date: Tue, 24 Aug 2010 09:28:45 +0000 (+0000) Subject: Correction of bug in setOptionString. X-Git-Tag: V5_1_main_FINAL~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dfff778ca3986a1a8226970cf17aa029ffa83e0d;p=tools%2Fmedcoupling.git Correction of bug in setOptionString. --- diff --git a/src/INTERP_KERNEL/InterpolationOptions.cxx b/src/INTERP_KERNEL/InterpolationOptions.cxx index 6eb93e9aa..6069bf22d 100644 --- a/src/INTERP_KERNEL/InterpolationOptions.cxx +++ b/src/INTERP_KERNEL/InterpolationOptions.cxx @@ -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) { diff --git a/src/INTERP_KERNEL/InterpolationOptions.hxx b/src/INTERP_KERNEL/InterpolationOptions.hxx index 49068a01a..92f483c35 100644 --- a/src/INTERP_KERNEL/InterpolationOptions.hxx +++ b/src/INTERP_KERNEL/InterpolationOptions.hxx @@ -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;