GeomAPI_DataMapOfShapeShape::~GeomAPI_DataMapOfShapeShape()
{
- if (myImpl) {
- implPtr<TopTools_DataMapOfShapeShape>()->Clear();
+ if (!empty()) {
+ implPtr<TopTools_DataMapOfShapeShape>()->Clear();
//delete myImpl;
}
- }
\ No newline at end of file
+ }