X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCollectionPlugin%2FCollectionPlugin_Group.cpp;h=aa57838cdd051ba284c3c8e06d1e6714c3687701;hb=1dfcab3d738e427bea678317e167c587dfbff195;hp=2a083360ea5270ebf1b52a2b4591e70f49068dca;hpb=a77927df4517b2ad5f55402ea7226a7ada49df18;p=modules%2Fshaper.git diff --git a/src/CollectionPlugin/CollectionPlugin_Group.cpp b/src/CollectionPlugin/CollectionPlugin_Group.cpp index 2a083360e..aa57838cd 100644 --- a/src/CollectionPlugin/CollectionPlugin_Group.cpp +++ b/src/CollectionPlugin/CollectionPlugin_Group.cpp @@ -142,9 +142,9 @@ bool CollectionPlugin_Group::customAction(const std::string& theActionId) } } } - if (aFatherGroup.size() < aList->size() && aFatherGroup.size() != 1) // already good + if (aFatherGroup.size() < (size_t)aList->size() && aFatherGroup.size() != 1) // already good break; - if (aFatherGroup.size() == aList->size()) // no sence to iterate further + if (aFatherGroup.size() == (size_t)aList->size()) // no sence to iterate further break; if (aFatherGroup.size() == 1 && aList->size() > 1 && aCurrentDepth == aMinDepth) aSplitAnyway = true; // split anyway, better that just move @@ -152,7 +152,6 @@ bool CollectionPlugin_Group::customAction(const std::string& theActionId) std::set aRemoved; bool aStay = false; // to indicate that the good attribute found stays in the list - int anIndex = 1; // index of the name assigned to group-feature and result // added in the order: 3 2 1 orig=0, so, keep the results to give names later std::list aResults; for(int aNext = aList->size() - 1; aNext >= 0; aNext--) { @@ -171,7 +170,7 @@ bool CollectionPlugin_Group::customAction(const std::string& theActionId) aRemoved.insert(aNext); FeaturePtr aNew; - if (aSplitAnyway || aFGroup > aResults.size()) { + if (aSplitAnyway || aFGroup > (int)aResults.size()) { aNew = aDoc->addFeature(ID(), false); aResults.push_front(aNew); // to keep the order } else { // appending in already created new result