mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2361 AppFwk : Make sure identical strings are separated by semicolon
This commit is contained in:
@@ -18,11 +18,11 @@ QTextStream& operator<<(QTextStream& str, const std::vector<caf::FilePath>& file
|
|||||||
trimmedEntries.push_back(text);
|
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 << ";";
|
str << ";";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user