From dfff778ca3986a1a8226970cf17aa029ffa83e0d Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 24 Aug 2010 09:28:45 +0000 Subject: [PATCH] Correction of bug in setOptionString. --- src/INTERP_KERNEL/InterpolationOptions.cxx | 2 +- src/INTERP_KERNEL/InterpolationOptions.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2