summaryrefslogtreecommitdiff
path: root/src/plugins/help/helpviewer.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2016-07-20 10:11:35 +0200
committerEike Ziller <eike.ziller@qt.io>2016-07-21 06:12:22 +0000
commit8c94419a0bb924081f52cdb423a81e4f8f2a6a84 (patch)
tree913282d40f74a1830ef0faab2386b221d6d63ef1 /src/plugins/help/helpviewer.cpp
parentc512f5d71fca1f214d6285510008a73c119665eb (diff)
downloadqt-creator-8c94419a0bb924081f52cdb423a81e4f8f2a6a84.tar.gz
Help: Remove unnecessary QLatin1Strings
Change-Id: Ia5c83d5e2c392873f400f3db396b9c355cdd4192 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/help/helpviewer.cpp')
-rw-r--r--src/plugins/help/helpviewer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/help/helpviewer.cpp b/src/plugins/help/helpviewer.cpp
index 101769070b..fbe0f0352b 100644
--- a/src/plugins/help/helpviewer.cpp
+++ b/src/plugins/help/helpviewer.cpp
@@ -88,8 +88,8 @@ HelpViewer::HelpViewer(QWidget *parent)
bool HelpViewer::isLocalUrl(const QUrl &url)
{
- return url.scheme() == QLatin1String("about") // "No documenation available"
- || url.scheme() == QLatin1String("qthelp");
+ return url.scheme() == "about" // "No documenation available"
+ || url.scheme() == "qthelp";
}
bool HelpViewer::canOpenPage(const QString &url)
@@ -109,7 +109,7 @@ QString HelpViewer::mimeFromUrl(const QUrl &url)
return QLatin1String(e->mimeType);
++e;
}
- return QLatin1String("");
+ return "";
}
bool HelpViewer::launchWithExternalApp(const QUrl &url)
@@ -123,7 +123,7 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
const QString& path = resolvedUrl.path();
if (!canOpenPage(path)) {
Utils::TempFileSaver saver(QDir::tempPath()
- + QLatin1String("/qtchelp_XXXXXX.") + QFileInfo(path).completeSuffix());
+ + "/qtchelp_XXXXXX." + QFileInfo(path).completeSuffix());
saver.setAutoRemove(false);
if (!saver.hasError())
saver.write(helpEngine.fileData(resolvedUrl));