- if (theAskAboutDeleteReferences && !aRefFeatures.empty()) {
- QStringList aRefNames;
- std::set<FeaturePtr>::const_iterator anIt = aRefFeatures.begin(),
- aLast = aRefFeatures.end();
- for (; anIt != aLast; anIt++) {
- aRefNames.append((*anIt)->name().c_str());
- }
- QString aNames = aRefNames.join(", ");
+ if (theAskAboutDeleteReferences && !aDirectRefFeatures.empty()) {
+ QStringList aDirectRefNames;
+ foreach(const FeaturePtr& aFeature, aDirectRefFeatures)
+ aDirectRefNames.append(aFeature->name().c_str());
+ QString aDirectNames = aDirectRefNames.join(", ");
+
+ QStringList aIndirectRefNames;
+ foreach(const FeaturePtr& aFeature, aIndirectRefFeatures)
+ aIndirectRefNames.append(aFeature->name().c_str());
+ QString aIndirectNames = aIndirectRefNames.join(", ");