for(int i = 1, iEnd = theIndices.Extent(); i <= iEnd; i++)
aMapIndex.Add(theIndices(i));
- if(aMapIndex.IsEmpty())
+ if(aMapIndex.IsEmpty()) {
myMapIOSubIndex.erase(theIO);
+ return false;
+ }
- return !aMapIndex.IsEmpty();
+ return true;
}
for(; anIter.More(); anIter.Next())
aMapIndex.Add(anIter.Key());
- if(aMapIndex.IsEmpty())
+ if(aMapIndex.IsEmpty()) {
myMapIOSubIndex.erase(theIO);
+ return false;
+ }
- return !aMapIndex.IsEmpty();
+ return true;
}