Commit 7c0b8729 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringView here

parent 30d349e9
Pipeline #60344 passed with stage
in 6 minutes and 11 seconds
...@@ -440,7 +440,7 @@ QString AlarmText::fromCalendarText(const QString &text, bool &email) ...@@ -440,7 +440,7 @@ QString AlarmText::fromCalendarText(const QString &text, bool &email)
int i = text.indexOf(Private::mSubjectPrefixEn); int i = text.indexOf(Private::mSubjectPrefixEn);
i = text.indexOf(QLatin1Char('\n'), i); i = text.indexOf(QLatin1Char('\n'), i);
if (i > 0) { if (i > 0) {
dispText += text.midRef(i); dispText += QStringView(text).mid(i);
} }
email = true; email = true;
return dispText; return dispText;
...@@ -481,7 +481,7 @@ QString AlarmText::toCalendarText(const QString &text) ...@@ -481,7 +481,7 @@ QString AlarmText::toCalendarText(const QString &text)
int i = text.indexOf(Private::mSubjectPrefix); int i = text.indexOf(Private::mSubjectPrefix);
i = text.indexOf(QLatin1Char('\n'), i); i = text.indexOf(QLatin1Char('\n'), i);
if (i > 0) { if (i > 0) {
calText += text.midRef(i); calText += QStringView(text).mid(i);
} }
return calText; return calText;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment