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
KAlarm
Commits
7c0b8729
Commit
7c0b8729
authored
May 01, 2021
by
Laurent Montel
😁
Browse files
Use QStringView here
parent
30d349e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/alarmtext.cpp
View file @
7c0b8729
...
...
@@ -440,7 +440,7 @@ QString AlarmText::fromCalendarText(const QString &text, bool &email)
int
i
=
text
.
indexOf
(
Private
::
mSubjectPrefixEn
);
i
=
text
.
indexOf
(
QLatin1Char
(
'\n'
),
i
);
if
(
i
>
0
)
{
dispText
+=
text
.
mid
Ref
(
i
);
dispText
+=
QStringView
(
text
)
.
mid
(
i
);
}
email
=
true
;
return
dispText
;
...
...
@@ -481,7 +481,7 @@ QString AlarmText::toCalendarText(const QString &text)
int
i
=
text
.
indexOf
(
Private
::
mSubjectPrefix
);
i
=
text
.
indexOf
(
QLatin1Char
(
'\n'
),
i
);
if
(
i
>
0
)
{
calText
+=
text
.
mid
Ref
(
i
);
calText
+=
QStringView
(
text
)
.
mid
(
i
);
}
return
calText
;
}
...
...
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