#2361 AppFwk : Make sure identical strings are separated by semicolon

This commit is contained in:
Magne Sjaastad 2018-01-17 13:37:41 +01:00
parent 50c3e5f0d2
commit c0d9ef67fa

View File

@ -18,11 +18,11 @@ QTextStream& operator<<(QTextStream& str, const std::vector<caf::FilePath>& 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 << ";";
}