From f9cc457fda7be0f2996c3dab91ad23f2973fa4ae Mon Sep 17 00:00:00 2001 From: Clarisse Genrault Date: Tue, 28 Feb 2017 09:59:23 +0100 Subject: [PATCH] Changed error message and google style. --- src/GeomAlgoAPI/GeomAlgoAPI_Scale.cpp | 4 ++-- src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp | 2 +- src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Scale.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Scale.cpp index bfdd1d0a4..8f6d28a9f 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Scale.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Scale.cpp @@ -39,11 +39,11 @@ GeomAlgoAPI_Scale::GeomAlgoAPI_Scale(std::shared_ptr theSourceSha bool GeomAlgoAPI_Scale::check() { if (!mySourceShape) { - myError = "Scale builder :: source shape is invalid."; + myError = "Scale builder :: source shape is not valid."; return false; } if (!myCenterPoint) { - myError = "Scale builder :: center point is invalid."; + myError = "Scale builder :: center point is not valid."; return false; } switch (myMethodType) { diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp index 8b3539c26..090fd3096 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp @@ -78,7 +78,7 @@ namespace GeomAlgoAPI_ShapeAPI if (!theEdge) { throw GeomAlgoAPI_Exception("Cylinder builder :: the axis is not valid."); } - + std::shared_ptr anAxis; anAxis = std::shared_ptr(new GeomAPI_Ax2(theBasePoint, theEdge->line()->direction())); diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp index f5baf287d..bf87fe8b3 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Symmetry.cpp @@ -41,33 +41,33 @@ bool GeomAlgoAPI_Symmetry::check() switch (myMethodType) { case BY_POINT: { if (!myPoint) { - myError = "Symmetry builder :: point is invalid."; + myError = "Symmetry builder :: point is not valid."; return false; } if (!mySourceShape) { - myError = "Symmetry builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is not valid."; return false; } return true; } case BY_AXIS: { if (!myAxis) { - myError = "Symmetry builder :: axis is invalid."; + myError = "Symmetry builder :: axis is not valid."; return false; } if (!mySourceShape) { - myError = "Symmetry builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is not valid."; return false; } return true; } case BY_PLANE: { if (!myPlane) { - myError = "Symmetry builder :: plane is invalid."; + myError = "Symmetry builder :: plane is not valid."; return false; } if (!mySourceShape) { - myError = "Symmetry builder :: source shape is invalid."; + myError = "Symmetry builder :: source shape is not valid."; return false; } return true; @@ -134,4 +134,4 @@ void GeomAlgoAPI_Symmetry::build() aShape->setImpl(new TopoDS_Shape(aResult)); setShape(aShape); setDone(true); -} \ No newline at end of file +} -- 2.39.2