Salome HOME
Issue #271: referencing between documents is implemented (the issue for filtering...
[modules/shaper.git] / src / Model / Model_ResultGroup.cpp
index 2fd1ead9d9caec79bc5472699d5c108bafd9a236..e9c6e8c8b9cbb185ea348d8c36221173c142e163 100644 (file)
@@ -6,21 +6,21 @@
 #include <ModelAPI_AttributeSelectionList.h>
 #include <GeomAlgoAPI_CompoundBuilder.h>
 
-Model_ResultGroup::Model_ResultGroup(boost::shared_ptr<ModelAPI_Data> theOwnerData)
+Model_ResultGroup::Model_ResultGroup(std::shared_ptr<ModelAPI_Data> theOwnerData)
 {
   setIsConcealed(false);
   myOwnerData = theOwnerData;
 }
 
-boost::shared_ptr<GeomAPI_Shape> Model_ResultGroup::shape() const
+std::shared_ptr<GeomAPI_Shape> Model_ResultGroup::shape()
 {
-  boost::shared_ptr<GeomAPI_Shape> aResult;
+  std::shared_ptr<GeomAPI_Shape> aResult;
   if (myOwnerData) {
     AttributeSelectionListPtr aList = myOwnerData->selectionList("group_list");
     if (aList) {
-      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();
         if (aSelection && !aSelection->isNull()) {
           aSubs.push_back(aSelection);
         }