From 54e258db126292e0f11201095e1f5b67b00e9833 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 30 Apr 2010 18:08:25 +0200 Subject: QLatin1String -> QL1S added cppcheck script --- src/urlbar/urlbar.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/urlbar') diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index 32e71c23..ad0f34a1 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -206,23 +206,23 @@ void UrlBar::keyPressEvent(QKeyEvent *event) // this handles the Modifiers + Return key combinations QString currentText = text().trimmed(); if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) - && !currentText.startsWith(QLatin1String("http://"), Qt::CaseInsensitive)) + && !currentText.startsWith(QL1S("http://"), Qt::CaseInsensitive)) { QString append; if (event->modifiers() == Qt::ControlModifier) { - append = QLatin1String(".com"); + append = QL1S(".com"); } else if (event->modifiers() == (Qt::ControlModifier | Qt::ShiftModifier)) { - append = QLatin1String(".org"); + append = QL1S(".org"); } else if (event->modifiers() == Qt::ShiftModifier) { - append = QLatin1String(".net"); + append = QL1S(".net"); } - QUrl url(QLatin1String("http://www.") + currentText); + QUrl url(QL1S("http://www.") + currentText); QString host = url.host(); if (!host.endsWith(append, Qt::CaseInsensitive)) { -- cgit v1.2.1