forked from qt-creator/qt-creator
Help: Remove unnecessary QLatin1Strings
Change-Id: Ia5c83d5e2c392873f400f3db396b9c355cdd4192 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user