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
PIM Messagelib
Commits
a31c5508
Commit
a31c5508
authored
Oct 01, 2020
by
Laurent Montel
😁
Browse files
Minor optimization; use remove(..)
parent
4d7662bf
Pipeline
#36148
passed with stage
in 38 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagecore/src/utils/stringutil.cpp
View file @
a31c5508
...
...
@@ -175,7 +175,7 @@ QVector<QPair<QString, QString> > parseMailtoUrl(const QUrl &url)
//Workaround line with # see bug 406208
const
int
indexOf
=
str
.
indexOf
(
QLatin1Char
(
'?'
));
if
(
indexOf
!=
-
1
)
{
str
=
str
.
right
(
str
.
length
()
-
indexOf
-
1
);
str
.
remove
(
0
,
indexOf
+
1
);
QUrlQuery
query
(
str
);
const
auto
listQuery
=
query
.
queryItems
(
QUrl
::
FullyDecoded
);
for
(
const
auto
&
queryItem
:
listQuery
)
{
...
...
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