Commit 632a7f06bdee24ba93b1f3bcf730a3f61f9ab33b

Authored by Domenico Tiziani
1 parent 348e8cd9

Changed double argument to reference

include/GModelSpatialComposite.hpp
... ... @@ -79,7 +79,7 @@ public:
79 79 int components(void) const;
80 80 void append(const GModelSpatial& component,
81 81 const std::string& name = "",
82   - double scale = 1.);
  82 + const double& scale = 1.);
83 83 const GModelSpatial* component(const int& index) const;
84 84 const GModelSpatial* component(const std::string& name) const;
85 85 double component_scale(const int& index) const;
... ...
src/model/GModelSpatialComposite.cpp
... ... @@ -489,7 +489,7 @@ void GModelSpatialComposite::write(GXmlElement& xml) const
489 489 ***************************************************************************/
490 490 void GModelSpatialComposite::append(const GModelSpatial& component,
491 491 const std::string& name,
492   - double scale)
  492 + const double& scale)
493 493 {
494 494 // Append model container
495 495 m_components.push_back(component.clone());
... ...