mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed an issue where StringUtil::delimitedStringToVector could return empty elements.
This commit is contained in:
parent
12f7e20c95
commit
9d2a9ed9d9
|
@ -706,6 +706,10 @@ namespace Utils
|
|||
std::sort(vectorResult.begin(), vectorResult.end());
|
||||
}
|
||||
|
||||
// Remove any empty elements.
|
||||
vectorResult.erase(remove(vectorResult.begin(), vectorResult.end(), ""),
|
||||
vectorResult.end());
|
||||
|
||||
return vectorResult;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue