Salome HOME
Fix for compilation on Linux
authormpv <mpv@opencascade.com>
Wed, 4 Dec 2019 12:44:58 +0000 (15:44 +0300)
committermpv <mpv@opencascade.com>
Wed, 4 Dec 2019 12:44:58 +0000 (15:44 +0300)
src/ModelAPI/ModelAPI_Tools.cpp
src/ModelAPI/ModelAPI_Tools.h

index 1c32b318ea1a39c86b89b6d046dccb6370378721..413f52c4ce616edd2c2e4cb49f84f0621dde2737 100644 (file)
@@ -835,7 +835,7 @@ double getTransparency(const std::shared_ptr<ModelAPI_Result>& theResult)
 // LCOV_EXCL_STOP
 
 void copyVisualizationAttrs(
-  std::shared_ptr<ModelAPI_Result>& theSource, std::shared_ptr<ModelAPI_Result>& theDest)
+  std::shared_ptr<ModelAPI_Result> theSource, std::shared_ptr<ModelAPI_Result> theDest)
 {
   // color
   AttributeIntArrayPtr aSourceColor = theSource->data()->intArray(ModelAPI_Result::COLOR_ID());
index 574f63829fd49e124d56e7b79a133f31ebdc413e..b0af5520bae730e1b3a1252f24df5a358bb42e70 100644 (file)
@@ -233,8 +233,8 @@ MODELAPI_EXPORT double getTransparency(const std::shared_ptr<ModelAPI_Result>& 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<ModelAPI_Result>& theSource,
-                                            std::shared_ptr<ModelAPI_Result>& theDest);
+MODELAPI_EXPORT void copyVisualizationAttrs(std::shared_ptr<ModelAPI_Result> theSource,
+                                            std::shared_ptr<ModelAPI_Result> theDest);
 
 }