Help: Remove unnecessary QLatin1Strings

Change-Id: Ia5c83d5e2c392873f400f3db396b9c355cdd4192
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Eike Ziller
2016-07-20 10:11:35 +02:00
parent c512f5d71f
commit 8c94419a0b
14 changed files with 126 additions and 136 deletions

View File

@@ -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));