From 7d893497bd2ce0605f42d68be7034be923738237 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 26 Apr 2019 10:23:24 +0300 Subject: [PATCH] Fix the long line formatting problem --- src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp b/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp index 0276c873d..370efa3a6 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp @@ -100,7 +100,8 @@ void FeaturesPlugin_RemoveSubShapes::attributeChanged(const std::string& theID) } std::list aSubShapes = GeomAlgoAPI_ShapeTools::getLowLevelSubShapes(aBaseShape); - for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) + ListOfShape::const_iterator anIt = aSubShapes.cbegin(); + for (; anIt != aSubShapes.cend(); ++anIt) { GeomShapePtr aSubShape = *anIt; if(!isHasSubs) { @@ -137,7 +138,8 @@ void FeaturesPlugin_RemoveSubShapes::attributeChanged(const std::string& theID) } std::list aSubShapes = GeomAlgoAPI_ShapeTools::getLowLevelSubShapes(aBaseShape); - for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) + ListOfShape::const_iterator anIt = aSubShapes.cbegin(); + for (; anIt != aSubShapes.cend(); ++anIt) { GeomShapePtr aSubShape = *anIt; if (aSubShapesToKeep.isBound(aSubShape)) @@ -178,7 +180,8 @@ void FeaturesPlugin_RemoveSubShapes::attributeChanged(const std::string& theID) std::list aSubShapes = GeomAlgoAPI_ShapeTools::getLowLevelSubShapes(aBaseShape); - for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) + ListOfShape::const_iterator anIt = aSubShapes.cbegin(); + for (; anIt != aSubShapes.cend(); ++anIt) { GeomShapePtr aSubShape = *anIt; if (aSubShapesToRemove.isBound(aSubShape)) -- 2.39.2