From: spo Date: Thu, 26 Nov 2015 11:08:51 +0000 (+0300) Subject: Fix Warning in GeomAPI_Trsf X-Git-Tag: V_2.1.0~234 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=75a7d7e0bffc1352f085b6b2f1caf63f954bc125;p=modules%2Fshaper.git Fix Warning in GeomAPI_Trsf --- 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);