From 20545eee384a4e96f5fb5c4296e1eda1e5d7bddb Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 4 Dec 2019 15:44:58 +0300 Subject: [PATCH] Fix for compilation on Linux --- src/ModelAPI/ModelAPI_Tools.cpp | 2 +- src/ModelAPI/ModelAPI_Tools.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.30.2