1
0

StringUtils: Fixed bad predicate in MergeStringVectors().

Instead of preventing duplicates it was allowing only duplicates.
This commit is contained in:
Mattes D 2015-01-24 15:58:40 +01:00
parent 28ffc55d89
commit 7cff25f0ff

View File

@ -914,7 +914,7 @@ AStringVector MergeStringVectors(const AStringVector & a_Strings1, const AString
// Add each item from strings2 that is not already present:
for (auto item : a_Strings2)
{
if (std::find(res.begin(), res.end(), item) != res.end())
if (std::find(res.begin(), res.end(), item) == res.end())
{
res.push_back(item);
}