summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2017-12-29 06:54:55 +0100
committerLaurent Montel <[email protected]>2017-12-29 06:54:55 +0100
commit40d5c83efc8a52ce21bcbf84100adb8de4bfb21f (patch)
treee247ad26898535a7291b8bba839e7a2799759c8d
parentd9ac01b8609c872ef9585b1b28e48e7a3a128fc8 (diff)
Use QLatin1String
-rw-r--r--contactprintthemeeditor/themeeditorpage.cpp2
-rw-r--r--contactthemeeditor/contacteditorpage.cpp2
-rw-r--r--headerthemeeditor/themeeditorpage.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/contactprintthemeeditor/themeeditorpage.cpp b/contactprintthemeeditor/themeeditorpage.cpp
index f9dd10a..5db795a 100644
--- a/contactprintthemeeditor/themeeditorpage.cpp
+++ b/contactprintthemeeditor/themeeditorpage.cpp
@@ -212,7 +212,7 @@ void ThemeEditorPage::addExtraPage()
{
QString filename = QInputDialog::getText(this, i18n("Filename of extra page"), i18n("Filename:"));
if (!filename.trimmed().isEmpty()) {
- if (!filename.endsWith(QStringLiteral(".html")) && !filename.endsWith(QStringLiteral(".css")) && !filename.endsWith(QStringLiteral(".js"))) {
+ if (!filename.endsWith(QLatin1String(".html")) && !filename.endsWith(QLatin1String(".css")) && !filename.endsWith(QLatin1String(".js"))) {
filename += QLatin1String(".html");
}
createExtraPage(filename);
diff --git a/contactthemeeditor/contacteditorpage.cpp b/contactthemeeditor/contacteditorpage.cpp
index 8951638..7861263 100644
--- a/contactthemeeditor/contacteditorpage.cpp
+++ b/contactthemeeditor/contacteditorpage.cpp
@@ -221,7 +221,7 @@ void ContactEditorPage::addExtraPage()
{
QString filename = QInputDialog::getText(this, i18n("Filename of extra page"), i18n("Filename:"));
if (!filename.trimmed().isEmpty()) {
- if (!filename.endsWith(QStringLiteral(".html")) && !filename.endsWith(QStringLiteral(".css")) && !filename.endsWith(QStringLiteral(".js"))) {
+ if (!filename.endsWith(QLatin1String(".html")) && !filename.endsWith(QLatin1String(".css")) && !filename.endsWith(QLatin1String(".js"))) {
filename += QLatin1String(".html");
}
createExtraPage(filename);
diff --git a/headerthemeeditor/themeeditorpage.cpp b/headerthemeeditor/themeeditorpage.cpp
index e004ca1..910d804 100644
--- a/headerthemeeditor/themeeditorpage.cpp
+++ b/headerthemeeditor/themeeditorpage.cpp
@@ -237,7 +237,7 @@ void ThemeEditorPage::addExtraPage()
{
QString filename = QInputDialog::getText(this, i18n("Filename of extra page"), i18n("Filename:"));
if (!filename.trimmed().isEmpty()) {
- if (!filename.endsWith(QStringLiteral(".html")) && !filename.endsWith(QStringLiteral(".css")) && !filename.endsWith(QStringLiteral(".js"))) {
+ if (!filename.endsWith(QLatin1String(".html")) && !filename.endsWith(QLatin1String(".css")) && !filename.endsWith(QLatin1String(".js"))) {
filename += QLatin1String(".html");
}
createExtraPage(filename);