CMakePM: Use more direct access to SourceDirectoryAspect

Change-Id: Ifc91b13fcdc9c42ad4a9521656a2bf63e08aaf78
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
hjk
2022-02-07 17:04:26 +01:00
parent c6643dad65
commit 347265a969

View File

@@ -1633,12 +1633,12 @@ BuildSystem *CMakeBuildConfiguration::buildSystem() const
void CMakeBuildConfiguration::setSourceDirectory(const FilePath &path)
{
aspect<SourceDirectoryAspect>()->setValue(path.toString());
aspect<SourceDirectoryAspect>()->setFilePath(path);
}
FilePath CMakeBuildConfiguration::sourceDirectory() const
{
return FilePath::fromString(aspect<SourceDirectoryAspect>()->value());
return aspect<SourceDirectoryAspect>()->filePath();
}
QString CMakeBuildConfiguration::cmakeBuildType() const