X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Interface.cpp;h=05f182755a14a68d0b4d21a169aa49bc3ae4b7a4;hb=3d28bcbab2f3ed0e40295e64f4e836caebc19fca;hp=4db15c99606069265f46b225eb93d2b55b993199;hpb=028f504e56e0cd3b5f7cc8921327515887504c7b;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Interface.cpp b/src/GeomAPI/GeomAPI_Interface.cpp index 4db15c996..05f182755 100644 --- a/src/GeomAPI/GeomAPI_Interface.cpp +++ b/src/GeomAPI/GeomAPI_Interface.cpp @@ -8,25 +8,15 @@ GeomAPI_Interface::GeomAPI_Interface() { - myImpl = 0; -} -GeomAPI_Interface::GeomAPI_Interface(void* theImpl) -{ - myImpl = theImpl; } GeomAPI_Interface::~GeomAPI_Interface() { - if (myImpl) { - delete myImpl; - myImpl = 0; - } + } -void GeomAPI_Interface::setImpl(void* theImpl) +bool GeomAPI_Interface::empty() const { - if (myImpl) - delete myImpl; - myImpl = theImpl; + return myImpl.get() == 0; }