X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomAPI%2FGeomAPI_AISObject.cpp;fp=src%2FGeomAPI%2FGeomAPI_AISObject.cpp;h=0cf6c079fc5c54e69d6d380a5c34635619fac06e;hb=46c0759fa291dad10b713cf02b341d6e9e60c1a4;hp=330ee20cb479b7bd140bc959827ad91bdf2e019b;hpb=03a36376c62149cbadb063fdca4ef6598b8fe3f0;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index 330ee20cb..0cf6c079f 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -105,12 +105,11 @@ std::shared_ptr GeomAPI_AISObject::getShape() const if (!anAIS.IsNull()) { Handle(AIS_Shape) aShapeAIS = Handle(AIS_Shape)::DownCast(anAIS); if (aShapeAIS) { - std::shared_ptr aResult(new GeomAPI_Shape); + aResult.reset(new GeomAPI_Shape); aResult->setImpl(new TopoDS_Shape(aShapeAIS->Shape())); - return aResult; } } - return std::shared_ptr(); + return aResult; } void GeomAPI_AISObject::createDistance(std::shared_ptr theStartPoint,