From 75a7d7e0bffc1352f085b6b2f1caf63f954bc125 Mon Sep 17 00:00:00 2001 From: spo Date: Thu, 26 Nov 2015 14:08:51 +0300 Subject: [PATCH] Fix Warning in GeomAPI_Trsf --- src/GeomAPI/GeomAPI_Trsf.cpp | 6 ------ src/GeomAPI/GeomAPI_Trsf.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/GeomAPI/GeomAPI_Trsf.cpp b/src/GeomAPI/GeomAPI_Trsf.cpp index f0775141c..ca5c55abe 100644 --- a/src/GeomAPI/GeomAPI_Trsf.cpp +++ b/src/GeomAPI/GeomAPI_Trsf.cpp @@ -19,12 +19,6 @@ GeomAPI_Trsf::GeomAPI_Trsf() { } -//================================================================================================= -GeomAPI_Trsf::GeomAPI_Trsf(void* theTrsf) -: GeomAPI_Interface(theTrsf) -{ -} - //================================================================================================= void GeomAPI_Trsf::setTranslation(const std::shared_ptr theAxis, const double theDistance) diff --git a/src/GeomAPI/GeomAPI_Trsf.h b/src/GeomAPI/GeomAPI_Trsf.h index d5f3ffd5b..7a84cfd78 100644 --- a/src/GeomAPI/GeomAPI_Trsf.h +++ b/src/GeomAPI/GeomAPI_Trsf.h @@ -22,6 +22,13 @@ class GeomAPI_Trsf : public GeomAPI_Interface public: /// Keeps no transformation, it may be set by setImpl GEOMAPI_EXPORT GeomAPI_Trsf(); + + /// Constructor by the impl pointer (used for internal needs) + template explicit GeomAPI_Trsf(T* theTrsf) + : GeomAPI_Interface(theTrsf) + { + } + /// Takes the pointer to existing transformation GEOMAPI_EXPORT GeomAPI_Trsf(void* theTrsf); -- 2.39.2