X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Double.cpp;fp=src%2FModelHighAPI%2FModelHighAPI_Double.cpp;h=91cbaac32914e30e1e68db9c6f0f18bd3bd0158c;hb=b1bf4bec5673c87a8e04882d6708bdf98123647a;hp=b40b89e0cd99c4c5ff1449c1b77f26b0beeec874;hpb=880d371be5b05fb2a5508e05c7cc1a84702a095c;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Double.cpp b/src/ModelHighAPI/ModelHighAPI_Double.cpp index b40b89e0c..91cbaac32 100644 --- a/src/ModelHighAPI/ModelHighAPI_Double.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Double.cpp @@ -35,7 +35,7 @@ struct fill_visitor : boost::static_visitor { mutable std::shared_ptr myAttribute; - fill_visitor(std::shared_ptr & theAttribute) + fill_visitor(const std::shared_ptr & theAttribute) : myAttribute(theAttribute) {} void operator()(double theValue) const { myAttribute->setValue(theValue); } @@ -43,7 +43,7 @@ struct fill_visitor : boost::static_visitor }; void ModelHighAPI_Double::fillAttribute( - std::shared_ptr & theAttribute) const + const std::shared_ptr & theAttribute) const { boost::apply_visitor(fill_visitor(theAttribute), myValue); }