forked from qt-creator/qt-creator
CMakePM: clang-tidy fix for "performance-unnecessary-value-param"
Change-Id: Ia22d7c3fe6c29a5e0999145b6c4b281818dd72bf Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1098,7 +1098,7 @@ static bool isWindowsARM64(const Kit *k)
|
|||||||
&& targetAbi.wordWidth() == 64;
|
&& targetAbi.wordWidth() == 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CommandLine defaultInitialCMakeCommand(const Kit *k, const QString buildType)
|
static CommandLine defaultInitialCMakeCommand(const Kit *k, const QString &buildType)
|
||||||
{
|
{
|
||||||
// Generator:
|
// Generator:
|
||||||
CMakeTool *tool = CMakeKitAspect::cmakeTool(k);
|
CMakeTool *tool = CMakeKitAspect::cmakeTool(k);
|
||||||
|
|||||||
@@ -656,7 +656,7 @@ void CMakeTool::fetchFromCapabilities(bool ignoreCache) const
|
|||||||
QTC_ASSERT_EXPECTED(result, return);
|
QTC_ASSERT_EXPECTED(result, return);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int getVersion(const QVariantMap &obj, const QString value)
|
static int getVersion(const QVariantMap &obj, const QString &value)
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
int result = obj.value(value).toInt(&ok);
|
int result = obj.value(value).toInt(&ok);
|
||||||
|
|||||||
Reference in New Issue
Block a user