forked from qt-creator/qt-creator
Don't detach temporaries
[-Wclazy-detaching-temporary] Change-Id: I278873fff8592249f0c4519a4e4a6faff2dff6e3 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@ void ClangToolsUnitTests::testProject()
|
||||
QFETCH(int, expectedDiagCount);
|
||||
if (projectFilePath.contains("mingw")) {
|
||||
const ToolChain * const toolchain
|
||||
= ToolChainKitInformation::toolChain(KitManager::kits().first(),
|
||||
= ToolChainKitInformation::toolChain(KitManager::kits().constFirst(),
|
||||
Constants::CXX_LANGUAGE_ID);
|
||||
if (toolchain->typeId() != ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID)
|
||||
QSKIP("This test is mingw specific, does not run for other toolchains");
|
||||
|
||||
Reference in New Issue
Block a user