aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/plugindialog.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2020-03-23 12:11:00 +0100
committerTobias Hunger <tobias.hunger@qt.io>2020-03-23 12:22:02 +0000
commit95947f280f929bbc1dd6d1f8b9d3285e887c4506 (patch)
treee821b588dc53888ca4eca31002021eb787e5b71b /src/plugins/coreplugin/plugindialog.cpp
parentd3ab2bb990c85e16219f4f88d83c1492d0b82c71 (diff)
PluginDialog: Fix warnings
Change-Id: Icf4b80cccf0eac8f0f2ec5efddb41342e5cfa188 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/plugindialog.cpp')
-rw-r--r--src/plugins/coreplugin/plugindialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/plugindialog.cpp b/src/plugins/coreplugin/plugindialog.cpp
index 466850863b..2f22401102 100644
--- a/src/plugins/coreplugin/plugindialog.cpp
+++ b/src/plugins/coreplugin/plugindialog.cpp
@@ -73,9 +73,9 @@ const char kApplicationInstall[] = "ApplicationInstall";
static bool hasLibSuffix(const QString &path)
{
- return HostOsInfo().isWindowsHost() && path.endsWith(".dll", Qt::CaseInsensitive)
- || HostOsInfo().isLinuxHost() && QFileInfo(path).completeSuffix().startsWith(".so")
- || HostOsInfo().isMacHost() && path.endsWith(".dylib");
+ return (HostOsInfo().isWindowsHost() && path.endsWith(".dll", Qt::CaseInsensitive))
+ || (HostOsInfo().isLinuxHost() && QFileInfo(path).completeSuffix().startsWith(".so"))
+ || (HostOsInfo().isMacHost() && path.endsWith(".dylib"));
}
static bool isZipFile(const QString &path)
@@ -101,12 +101,13 @@ static Utils::optional<Tool> unzipTool(const FilePath &src, const FilePath &dest
Utils::HostOsInfo::withExecutableSuffix("7z"));
if (!sevenzip.isEmpty())
return Tool{sevenzip, {"x", QString("-o") + dest.toString(), "-y", src.toString()}};
- return Utils::nullopt;
const FilePath cmake = Utils::Environment::systemEnvironment().searchInPath(
Utils::HostOsInfo::withExecutableSuffix("cmake"));
if (!cmake.isEmpty())
return Tool{cmake, {"-E", "tar", "xvf", src.toString()}};
+
+ return {};
}
class SourcePage : public WizardPage