X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFiltersPlugin%2FFiltersPlugin_OnPlane.cpp;h=7312e82796139740d0dbd3278c7a3047b3934d6c;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=8ee128dc74f90646788ffb32987c5429766c07cd;hpb=72c3b7ee69288b5ebad209b2b732a5dcd8c748ee;p=modules%2Fshaper.git diff --git a/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp b/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp index 8ee128dc7..7312e8279 100644 --- a/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp +++ b/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,6 +41,8 @@ bool FiltersPlugin_OnPlane::isSupported(GeomAPI_Shape::ShapeType theType) const case GeomAPI_Shape::EDGE: case GeomAPI_Shape::VERTEX: return true; + default: // [to avoid compilation warning] + break; } return false; } @@ -96,9 +98,8 @@ bool FiltersPlugin_OnPlane::isOk(const GeomShapePtr& theShape, const ResultPtr&, if (aFace->isPlanar()) { GeomPlanePtr aPln = aFace->getPlane(); for (int i = 0; i < aList->size(); i++) { - AttributeSelectionPtr aAttr = aList->value(i); - GeomShapePtr aGeom = aAttr->value(); - GeomPlanePtr aPlane = getPlane(aAttr); + AttributeSelectionPtr aCurAttr = aList->value(i); + GeomPlanePtr aPlane = getPlane(aCurAttr); if (aPlane->isCoincident(aPln)) return true; }