Salome HOME
Use fillAttribute in *API interfaces
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Double.cpp
index b40b89e0cd99c4c5ff1449c1b77f26b0beeec874..91cbaac32914e30e1e68db9c6f0f18bd3bd0158c 100644 (file)
@@ -35,7 +35,7 @@ struct fill_visitor : boost::static_visitor<void>
 {
   mutable std::shared_ptr<ModelAPI_AttributeDouble> myAttribute;
 
-  fill_visitor(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute)
+  fill_visitor(const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute)
   : myAttribute(theAttribute) {}
 
   void operator()(double theValue) const { myAttribute->setValue(theValue); }
@@ -43,7 +43,7 @@ struct fill_visitor : boost::static_visitor<void>
 };
 
 void ModelHighAPI_Double::fillAttribute(
-    std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const
+    const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const
 {
   boost::apply_visitor(fill_visitor(theAttribute), myValue);
 }