Salome HOME
Fix for issue #1000
[modules/shaper.git] / src / GeomAPI / GeomAPI_Dir2d.cpp
index abb954f294e260c54d789982eb52f361cf7a9bf5..4cb8149a3999d46e55c58e674aff32820fe3523e 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <gp_Dir2d.hxx>
 
-#define MY_DIR static_cast<gp_Dir2d*>(myImpl)
+#define MY_DIR implPtr<gp_Dir2d>()
 
 GeomAPI_Dir2d::GeomAPI_Dir2d(const double theX, const double theY)
     : GeomAPI_Interface(new gp_Dir2d(theX, theY))