Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for issue #1000
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_Interface.cpp
diff --git
a/src/GeomAPI/GeomAPI_Interface.cpp
b/src/GeomAPI/GeomAPI_Interface.cpp
index 4db15c99606069265f46b225eb93d2b55b993199..05f182755a14a68d0b4d21a169aa49bc3ae4b7a4 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Interface.cpp
+++ b/
src/GeomAPI/GeomAPI_Interface.cpp
@@
-8,25
+8,15
@@
GeomAPI_Interface::GeomAPI_Interface()
{
GeomAPI_Interface::GeomAPI_Interface()
{
- myImpl = 0;
-}
-GeomAPI_Interface::GeomAPI_Interface(void* theImpl)
-{
- myImpl = theImpl;
}
GeomAPI_Interface::~GeomAPI_Interface()
{
}
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;
}
}