@@ -79,7 +79,7 @@ void CommandLineParser::Private::addDefinitions(const CommandLineOption * option
7979 QString option = QString::fromLatin1 (options[i].specification );
8080 // options with optional params are written as "--option required[, optional]
8181 if (option.indexOf (QLatin1Char (' ,' )) >= 0 && ( option.indexOf (QLatin1Char (' [' )) < 0 || option.indexOf (QLatin1Char (' ]' )) < 0 ) ) {
82- QStringList optionParts = option.split (QLatin1Char (' ,' ), QString ::SkipEmptyParts);
82+ QStringList optionParts = option.split (QLatin1Char (' ,' ), Qt ::SkipEmptyParts);
8383 if (optionParts.count () != 2 ) {
8484 qWarning () << " WARN: option definition '" << option << " ' is faulty; only one ',' allowed" ;
8585 continue ;
@@ -104,7 +104,7 @@ void CommandLineParser::Private::addDefinitions(const CommandLineOption * option
104104 if (definition.name .isEmpty ())
105105 continue ;
106106 if (option.indexOf (QLatin1Char (' ' )) > 0 ) {
107- QStringList optionParts = definition.name .split (QLatin1Char (' ' ), QString ::SkipEmptyParts);
107+ QStringList optionParts = definition.name .split (QLatin1Char (' ' ), Qt ::SkipEmptyParts);
108108 definition.name = optionParts[0 ];
109109 bool first = true ;
110110 foreach (QString s, optionParts) {
@@ -137,7 +137,7 @@ void CommandLineParser::Private::setArgumentDefinition(const char *defs)
137137{
138138 requiredArguments = 0 ;
139139 argumentDefinition = QString::fromLatin1 (defs);
140- QStringList optionParts = argumentDefinition.split (QLatin1Char (' ' ), QString ::SkipEmptyParts);
140+ QStringList optionParts = argumentDefinition.split (QLatin1Char (' ' ), Qt ::SkipEmptyParts);
141141 bool inArg = false ;
142142 foreach (QString s, optionParts) {
143143 s = s.trimmed ();
0 commit comments