forked from qt-creator/qt-creator
Utils: Replace FilePath part setters
... by a combined version. This will make it easier to store the parts in one QString object. Change-Id: Ie85a77e3957c78a30e49998fe2e617af35a8ad17 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1439,9 +1439,8 @@ FilePath CMakeBuildConfiguration::shadowBuildDirectory(const FilePath &projectFi
|
||||
bcName, buildType, "cmake");
|
||||
|
||||
if (CMakeGeneratorKitAspect::isMultiConfigGenerator(k)) {
|
||||
QString path = buildPath.path();
|
||||
path = path.left(path.lastIndexOf(QString("-%1").arg(bcName)));
|
||||
buildPath.setPath(path);
|
||||
const QString path = buildPath.path();
|
||||
buildPath = buildPath.withNewPath(path.left(path.lastIndexOf(QString("-%1").arg(bcName))));
|
||||
}
|
||||
|
||||
return buildPath;
|
||||
|
||||
Reference in New Issue
Block a user