diff --git a/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmFilePathStreamOperators.cpp b/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmFilePathStreamOperators.cpp index a634a0b57a..443dc469a5 100644 --- a/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmFilePathStreamOperators.cpp +++ b/Fwk/AppFwk/cafProjectDataModel/cafPdmXml/cafInternalPdmFilePathStreamOperators.cpp @@ -18,11 +18,11 @@ QTextStream& operator<<(QTextStream& str, const std::vector& file trimmedEntries.push_back(text); } - for (const auto& s : trimmedEntries) + for (size_t i = 0; i < trimmedEntries.size(); i++) { - str << s; + str << trimmedEntries[i]; - if (s != trimmedEntries.back()) + if (i < trimmedEntries.size() - 1) { str << ";"; }