X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Interface.cpp;h=05f182755a14a68d0b4d21a169aa49bc3ae4b7a4;hb=3d28bcbab2f3ed0e40295e64f4e836caebc19fca;hp=5e9b257fbb17a6436d864d3ce921126caf2b59e5;hpb=c80e8ac643930b858f4f653e2659896ba587b165;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Interface.cpp b/src/GeomAPI/GeomAPI_Interface.cpp index 5e9b257fb..05f182755 100644 --- a/src/GeomAPI/GeomAPI_Interface.cpp +++ b/src/GeomAPI/GeomAPI_Interface.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_Interface.cpp // Created: 23 Apr 2014 // Author: Mikhail PONIKAROV @@ -6,28 +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::implementation() -{ - return myImpl; } -void GeomAPI_Interface::setImplementation(void* theImpl) +bool GeomAPI_Interface::empty() const { - if (myImpl) - delete myImpl; - myImpl = theImpl; + return myImpl.get() == 0; }