Utils: Replace mutating FileName::appendString

... by a non-mutating .stringAppended, doing the same.

Change-Id: I7adb6cae3415942cc9a80088bd75cda9d577d4a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-05-15 08:01:06 +02:00
parent 075d674c5a
commit f99d69ee43
8 changed files with 27 additions and 41 deletions

View File

@@ -1941,12 +1941,10 @@ FileNameList QmakeProFile::generatedFiles(const FileName &buildDir,
return { };
FileName location = buildDir;
location.appendPath(sourceFile.toFileInfo().completeBaseName());
FileName header = location;
header.appendString(singleVariableValue(Variable::HeaderExtension));
FileName cpp = location;
cpp.appendString(singleVariableValue(Variable::CppExtension));
return { header, cpp };
return {
location.stringAppended(singleVariableValue(Variable::HeaderExtension)),
location.stringAppended(singleVariableValue(Variable::CppExtension))
};
}
return { };
}