From fa6f8883f102206160b8869aa3cb6c308beb9d6d Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 4 Sep 2015 14:36:32 +0300 Subject: [PATCH] Compillation correction --- src/GeomValidators/GeomValidators_Different.cpp | 2 +- src/GeomValidators/GeomValidators_Face.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GeomValidators/GeomValidators_Different.cpp b/src/GeomValidators/GeomValidators_Different.cpp index 45de46f7d..353df10b8 100644 --- a/src/GeomValidators/GeomValidators_Different.cpp +++ b/src/GeomValidators/GeomValidators_Different.cpp @@ -72,7 +72,7 @@ bool GeomValidators_Different::isValid(const std::shared_ptr& std::list::const_iterator aFindIt = std::find_if(aNextIt, anAttributes.end(), IsEqual(*anAttributeIt)); if (aFindIt != anAttributes.end()) { - theError = "Attributes " + anAttributeIt->id() + " and " + aFindIt->id() + " are equal." ; + theError = "Attributes " + (*anAttributeIt)->id() + " and " + (*aFindIt)->id() + " are equal." ; return false; } ++anAttributeIt; diff --git a/src/GeomValidators/GeomValidators_Face.cpp b/src/GeomValidators/GeomValidators_Face.cpp index be0d9270e..a9fb025ae 100644 --- a/src/GeomValidators/GeomValidators_Face.cpp +++ b/src/GeomValidators/GeomValidators_Face.cpp @@ -66,20 +66,20 @@ bool GeomValidators_Face::isValid(const AttributePtr& theAttribute, case GeomAbs_Plane: aValid = aGeomFace->isPlanar(); if (!aValid) - theError = "The shape is not a plane." + theError = "The shape is not a plane."; break; case GeomAbs_Cylinder: aValid = aGeomFace->isCylindrical(); if (!aValid) - theError = "The shape is not a cylinder." + theError = "The shape is not a cylinder."; break; default: - theError = "The shape is not an available face." + theError = "The shape is not an available face."; break; } } } else - theError = "The shape is not a face." + theError = "The shape is not a face."; } else aValid = true; // an empty face selected is valid. -- 2.39.2