X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.cpp;h=e9c6e8c8b9cbb185ea348d8c36221173c142e163;hb=50c050906e6b5926727fcbadcbf4247326ef60be;hp=2fd1ead9d9caec79bc5472699d5c108bafd9a236;hpb=8c99e5e8dd74d99dfbf534bd66b32b70ca134aa7;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.cpp b/src/Model/Model_ResultGroup.cpp index 2fd1ead9d..e9c6e8c8b 100644 --- a/src/Model/Model_ResultGroup.cpp +++ b/src/Model/Model_ResultGroup.cpp @@ -6,21 +6,21 @@ #include #include -Model_ResultGroup::Model_ResultGroup(boost::shared_ptr theOwnerData) +Model_ResultGroup::Model_ResultGroup(std::shared_ptr theOwnerData) { setIsConcealed(false); myOwnerData = theOwnerData; } -boost::shared_ptr Model_ResultGroup::shape() const +std::shared_ptr Model_ResultGroup::shape() { - boost::shared_ptr aResult; + std::shared_ptr aResult; if (myOwnerData) { AttributeSelectionListPtr aList = myOwnerData->selectionList("group_list"); if (aList) { - std::list > aSubs; - for(int a = aList->size(); a >= 0; a--) { - boost::shared_ptr aSelection = aList->value(a)->value(); + std::list > aSubs; + for(int a = aList->size() - 1; a >= 0; a--) { + std::shared_ptr aSelection = aList->value(a)->value(); if (aSelection && !aSelection->isNull()) { aSubs.push_back(aSelection); }