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