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 5e9b257fbb17a6436d864d3ce921126caf2b59e5..05f182755a14a68d0b4d21a169aa49bc3ae4b7a4 100644
(file)
--- 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
// File: GeomAPI_Interface.cpp
// Created: 23 Apr 2014
// Author: Mikhail PONIKAROV
@@
-6,28
+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;
-}
-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;
}
}