Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67c30a2

Browse files
committed
Resolve use of QString::SkipEmptyParts for Qt 6
1 parent 35a41fd commit 67c30a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/CommandLineParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /