From c0d9ef67fa0946bf88d04f48110f6c47c8cceadb Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 17 Jan 2018 13:37:41 +0100 Subject: [PATCH] #2361 AppFwk : Make sure identical strings are separated by semicolon --- .../cafPdmXml/cafInternalPdmFilePathStreamOperators.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 << ";"; }