From: mpv Date: Wed, 4 Dec 2019 12:44:58 +0000 (+0300) Subject: Fix for compilation on Linux X-Git-Tag: V9_5_0a1~126 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20545eee384a4e96f5fb5c4296e1eda1e5d7bddb;p=modules%2Fshaper.git Fix for compilation on Linux --- diff --git a/src/ModelAPI/ModelAPI_Tools.cpp b/src/ModelAPI/ModelAPI_Tools.cpp index 1c32b318e..413f52c4c 100644 --- a/src/ModelAPI/ModelAPI_Tools.cpp +++ b/src/ModelAPI/ModelAPI_Tools.cpp @@ -835,7 +835,7 @@ double getTransparency(const std::shared_ptr& theResult) // LCOV_EXCL_STOP void copyVisualizationAttrs( - std::shared_ptr& theSource, std::shared_ptr& theDest) + std::shared_ptr theSource, std::shared_ptr theDest) { // color AttributeIntArrayPtr aSourceColor = theSource->data()->intArray(ModelAPI_Result::COLOR_ID()); diff --git a/src/ModelAPI/ModelAPI_Tools.h b/src/ModelAPI/ModelAPI_Tools.h index 574f63829..b0af5520b 100644 --- a/src/ModelAPI/ModelAPI_Tools.h +++ b/src/ModelAPI/ModelAPI_Tools.h @@ -233,8 +233,8 @@ MODELAPI_EXPORT double getTransparency(const std::shared_ptr& t * \param theSource a result that contains the copied attributes * \param theDest a destination result that takes the visualization attributes */ -MODELAPI_EXPORT void copyVisualizationAttrs(std::shared_ptr& theSource, - std::shared_ptr& theDest); +MODELAPI_EXPORT void copyVisualizationAttrs(std::shared_ptr theSource, + std::shared_ptr theDest); }