Commit a5346917 authored by Sergio Martins's avatar Sergio Martins
Browse files

Use QStringRef for operator+= too

parent a9feb5cc
......@@ -448,7 +448,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(i);
dispText += text.midRef(i);
}
email = true;
return dispText;
......@@ -489,7 +489,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(i);
calText += text.midRef(i);
}
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