summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-02-02 07:27:20 +0100
committerLaurent Montel <[email protected]>2018-02-02 07:27:20 +0100
commit94d49d388e64670615a7387971b5130745b84a4a (patch)
treed7204a677330c7be84ef4672e1c9e67013a95c70
parent38c800644fde8553ffb21fd9cb834f66f6b7fe0b (diff)
Use QLatin1String
-rw-r--r--src/pimcommon/autocorrection/autocorrection.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pimcommon/autocorrection/autocorrection.cpp b/src/pimcommon/autocorrection/autocorrection.cpp
index 643e023..3bb4452 100644
--- a/src/pimcommon/autocorrection/autocorrection.cpp
+++ b/src/pimcommon/autocorrection/autocorrection.cpp
@@ -754,12 +754,12 @@ void AutoCorrection::capitalizeWeekDays()
bool AutoCorrection::excludeToUppercase(const QString &word) const
{
- if (word.startsWith(QStringLiteral("http://"))
- || word.startsWith(QStringLiteral("www."))
- || word.startsWith(QStringLiteral("mailto:"))
- || word.startsWith(QStringLiteral("ftp://"))
- || word.startsWith(QStringLiteral("https://"))
- || word.startsWith(QStringLiteral("ftps://"))) {
+ if (word.startsWith(QLatin1String("http://"))
+ || word.startsWith(QLatin1String("www."))
+ || word.startsWith(QLatin1String("mailto:"))
+ || word.startsWith(QLatin1String("ftp://"))
+ || word.startsWith(QLatin1String("https://"))
+ || word.startsWith(QLatin1String("ftps://"))) {
return true;
}
return false;
@@ -847,11 +847,11 @@ bool AutoCorrection::autoFractions()
return false;
}
- if (trimmed.startsWith(QStringLiteral("1/2"))) {
+ if (trimmed.startsWith(QLatin1String("1/2"))) {
mWord.replace(0, 3, QStringLiteral("½"));
- } else if (trimmed.startsWith(QStringLiteral("1/4"))) {
+ } else if (trimmed.startsWith(QLatin1String("1/4"))) {
mWord.replace(0, 3, QStringLiteral("¼"));
- } else if (trimmed.startsWith(QStringLiteral("3/4"))) {
+ } else if (trimmed.startsWith(QLatin1String("3/4"))) {
mWord.replace(0, 3, QStringLiteral("¾"));
} else {
return false;