From bfb0ac76c5f098493b6e02d19755ef2f1648a26d Mon Sep 17 00:00:00 2001 From: Sergey POKHODENKO Date: Wed, 27 May 2015 11:30:24 +0300 Subject: [PATCH] Fix compilation error in GeomAlgoAPI_ShapeProps.cpp --- src/GeomAlgoAPI/GeomAlgoAPI_ShapeProps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2