Salome HOME
Changes in the presentations of features
[modules/shaper.git] / src / GeomAPI / GeomAPI_Interface.h
index bd9a77ab13078880e6a961b4a9ab86df08e55900..f77131de6f821dc5fb1b52fad1dfaaa6965ee511 100644 (file)
@@ -28,7 +28,7 @@ public:
   virtual ~GeomAPI_Interface();
 
   /// Returns the pointer to the impl
-  template<class T> inline T* implPtr() {return dynamic_cast<T*>(myImpl);}
+  template<class T> inline T* implPtr() {return static_cast<T*>(myImpl);}
   /// Returns the reference object of the impl
   template<class T> inline const T& impl() {return *(static_cast<T*>(myImpl));}
   /// Updates the impl (deletes the old one)