- std::list<boost::shared_ptr<GeomAPI_Shape> > aSubs;
- for(int a = aList->size(); a >= 0; a--) {
- boost::shared_ptr<GeomAPI_Shape> aSelection = aList->value(a)->value();
+ std::list<std::shared_ptr<GeomAPI_Shape> > aSubs;
+ for(int a = aList->size() - 1; a >= 0; a--) {
+ std::shared_ptr<GeomAPI_Shape> aSelection = aList->value(a)->value();