From: azv Date: Thu, 20 Dec 2018 05:27:46 +0000 (+0300) Subject: Fix warning on inaccessible line of code X-Git-Tag: End2018~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d2605264792f74cd187d27aee19eaa627dcc488d;p=modules%2Fshaper.git Fix warning on inaccessible line of code --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp index 36111ca5a..cd05c49e8 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ConeSegment.cpp @@ -142,8 +142,8 @@ void GeomAlgoAPI_ConeSegment::build() BRepPrimAPI_MakeRevol* aRevolBuilder = new BRepPrimAPI_MakeRevol(aFaceBuilder.Face(), aZAxis, myDeltaPhi * M_PI/180., Standard_True); if(!aRevolBuilder) { - return; myError = "Cone Segment builder :: section revolution did not succeed"; + return; } if(!aRevolBuilder->IsDone()) { myError = "Cone Segment builder :: section revolution did not succeed";