Compile fix: Don't use Utils::FileName's private constructor

error: C2248: 'Utils::FileName::FileName': cannot access private member
declared in class 'Utils::FileName'

Change-Id: I0d7169170d4c360fce038c43c6572acc6760bddf
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Alessandro Portale
2018-03-01 18:35:29 +01:00
committed by Orgad Shaneh
parent ec571d86fd
commit 0db9df2806
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ void QmakeKitInformation::setup(Kit *k)
const Environment systemEnvironment = Environment::systemEnvironment();
ToolChain *bestTc = Utils::findOrDefault(goodTcs,
[&systemEnvironment](const ToolChain *t) {
return systemEnvironment.path().contains(t->compilerCommand().parentDir().toString());
return systemEnvironment.path().contains(t->compilerCommand().parentDir());
});
if (!bestTc) {
bestTc = goodTcs.isEmpty() ? possibleTcs.last() : goodTcs.last();