diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-30 18:08:25 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-30 18:08:25 +0200 |
commit | 54e258db126292e0f11201095e1f5b67b00e9833 (patch) | |
tree | 79b840b5f95ad0b741da2bc6911a1bcabf381621 /src/urlbar | |
parent | rekonq 0.4.66 (diff) | |
download | rekonq-54e258db126292e0f11201095e1f5b67b00e9833.tar.xz |
QLatin1String -> QL1S
added cppcheck script
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/urlbar.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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)) { |