Browse Source

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

tags/2021-05-28
ed 6 years ago
parent
commit
38fb341ee4
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/juce_core/misc/juce_ConsoleApplication.cpp

+ 1
- 0
modules/juce_core/misc/juce_ConsoleApplication.cpp 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 });


Loading…
Cancel
Save