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
KDE PIM Add-ons
Commits
1872d016
Commit
1872d016
authored
Jan 18, 2021
by
Laurent Montel
😁
Browse files
It's already in qt5.14
parent
6fcdcf7f
Pipeline
#48049
passed with stage
in 54 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp
View file @
1872d016
...
...
@@ -471,11 +471,7 @@ void GMXImportExportPluginInterface::importGMX()
while
((
line
!=
QLatin1String
(
"####"
))
&&
!
gmxStream
.
atEnd
())
{
// an addressee entry may spread over several lines in the file
while
(
true
)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
itemList
=
line
.
split
(
QLatin1Char
(
'#'
),
QString
::
KeepEmptyParts
);
#else
itemList
=
line
.
split
(
QLatin1Char
(
'#'
),
Qt
::
KeepEmptyParts
);
#endif
if
(
itemList
.
count
()
>=
11
)
{
break
;
}
...
...
@@ -520,11 +516,7 @@ void GMXImportExportPluginInterface::importGMX()
while
(
!
line
.
startsWith
(
QLatin1String
(
"####"
))
&&
!
gmxStream
.
atEnd
())
{
// an address entry may spread over several lines in the file
while
(
true
)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
itemList
=
line
.
split
(
QLatin1Char
(
'#'
),
QString
::
KeepEmptyParts
);
#else
itemList
=
line
.
split
(
QLatin1Char
(
'#'
),
Qt
::
KeepEmptyParts
);
#endif
if
(
itemList
.
count
()
>=
21
)
{
break
;
}
...
...
@@ -619,11 +611,7 @@ void GMXImportExportPluginInterface::importGMX()
&&
!
gmxStream
.
atEnd
())
{
// a category should not spread over multiple lines, but just in case
while
(
true
)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
itemList
=
line
.
split
(
QLatin1Char
(
'#'
),
QString
::
KeepEmptyParts
);
#else
itemList
=
line
.
split
(
QLatin1Char
(
'#'
),
Qt
::
KeepEmptyParts
);
#endif
if
(
itemList
.
count
()
>=
3
)
{
break
;
}
...
...
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