X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomValidators%2FGeomValidators_DifferentShapes.cpp;h=7b9dc9589b3c251f4e520599c6fc25315aaaace5;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=69a981be699f7741b1e34a6091e1d5dc344c0afb;hpb=6eda8832857ed1cdf4ed2c281faef0daccfb67a6;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_DifferentShapes.cpp b/src/GeomValidators/GeomValidators_DifferentShapes.cpp index 69a981be6..7b9dc9589 100644 --- a/src/GeomValidators/GeomValidators_DifferentShapes.cpp +++ b/src/GeomValidators/GeomValidators_DifferentShapes.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "GeomValidators_DifferentShapes.h" @@ -31,7 +30,7 @@ //================================================================================================= bool GeomValidators_DifferentShapes::isValid(const AttributePtr& theAttribute, - const std::list& theArguments, + const std::list& /*theArguments*/, Events_InfoMessage& theError) const { bool isValid = false; @@ -171,5 +170,7 @@ bool GeomValidators_DifferentShapes::isAttrShapesEqual(const AttributePtr& theAt } GeomShapePtr aOtherTypedShape = GeomAPI_Tools::getTypedShape(anOtherShape); + if (!aTypedShape.get()) + return !aTypedShape.get() && !aOtherTypedShape.get(); return aTypedShape->isEqual(aOtherTypedShape); -} \ No newline at end of file +}