Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
a419504b
Commit
a419504b
authored
Jan 15, 2021
by
Laurent Montel
😁
Browse files
QString::split(..., Qt::SplitBehavior, ...) is already in Qt 5.14
parent
3c3e4f51
Pipeline
#47736
passed with stage
in 10 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cli/main.cpp
View file @
a419504b
...
...
@@ -166,11 +166,7 @@ int main(int argc, char** argv)
if
(
!
parser
.
value
(
extOpt
).
isEmpty
())
{
const
auto
extNames
=
parser
.
value
(
extOpt
).
split
(
QLatin1Char
(
';'
),
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QString
::
SkipEmptyParts
);
#else
Qt
::
SkipEmptyParts
);
#endif
std
::
vector
<
Extractor
>
exts
;
exts
.
reserve
(
extNames
.
size
());
for
(
const
auto
&
name
:
extNames
)
{
...
...
src/knowledgedb/airportdb.cpp
View file @
a419504b
...
...
@@ -197,11 +197,7 @@ static void iataCodeForNameFragments(const QStringList &fragments, std::vector<I
static
QStringList
splitToFragments
(
const
QString
&
name
)
{
return
name
.
split
(
QRegularExpression
(
QStringLiteral
(
"[ 0-9/'
\"\\
(
\\
)&
\\
,.–„-]"
)),
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
QString
::
SkipEmptyParts
);
#else
Qt
::
SkipEmptyParts
);
#endif
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment