From: Sergey POKHODENKO Date: Wed, 27 May 2015 08:30:24 +0000 (+0300) Subject: Fix compilation error in GeomAlgoAPI_ShapeProps.cpp X-Git-Tag: V_1.2.0~60^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bfb0ac76c5f098493b6e02d19755ef2f1648a26d;p=modules%2Fshaper.git Fix compilation error in GeomAlgoAPI_ShapeProps.cpp --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeProps.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeProps.cpp index f11155bed..fcec98202 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeProps.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeProps.cpp @@ -30,11 +30,11 @@ std::shared_ptr GeomAlgoAPI_ShapeProps::centreOfMass(std::shared_pt { GProp_GProps aGProps; if(!theShape) { - return NULL; + return std::shared_ptr(); } const TopoDS_Shape& aShape = theShape->impl(); if(aShape.IsNull()) { - return NULL; + return std::shared_ptr(); } BRepGProp::SurfaceProperties(aShape, aGProps); gp_Pnt aCentre = aGProps.CentreOfMass();