1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Remove empty strings when creating an ArgumentList so they are not treated as a separate argument

This commit is contained in:
ed 2019-01-22 11:58:46 +00:00
parent 3b16efce0b
commit 38fb341ee4

View file

@ -92,6 +92,7 @@ ArgumentList::ArgumentList (String exeName, StringArray args)
: executableName (std::move (exeName))
{
args.trim();
args.removeEmptyStrings();
for (auto& a : args)
arguments.add ({ a });