diff --git a/src/plugins/autotoolsprojectmanager/autotoolsbuildsystem.cpp b/src/plugins/autotoolsprojectmanager/autotoolsbuildsystem.cpp index a18d93878e7..e97da7a1d0b 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsbuildsystem.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsbuildsystem.cpp @@ -178,11 +178,9 @@ void AutotoolsBuildSystem::updateCppCodeModel() QtSupport::CppKitInfo kitInfo(kit()); QTC_ASSERT(kitInfo.isValid(), return ); - const Utils::FilePath projectFilePath = project()->projectFilePath(); - RawProjectPart rpp; rpp.setDisplayName(project()->displayName()); - rpp.setProjectFileLocation(projectFilePath.toString()); + rpp.setProjectFileLocation(projectFilePath().toString()); rpp.setQtVersion(kitInfo.projectPartQtVersion); const QStringList cflags = m_makefileParserThread->cflags(); QStringList cxxflags = m_makefileParserThread->cxxflags(); diff --git a/src/plugins/nim/project/nimblebuildsystem.cpp b/src/plugins/nim/project/nimblebuildsystem.cpp index 2ec092bd568..a4865b8d84b 100644 --- a/src/plugins/nim/project/nimblebuildsystem.cpp +++ b/src/plugins/nim/project/nimblebuildsystem.cpp @@ -118,7 +118,7 @@ NimbleBuildSystem::NimbleBuildSystem(Target *target) m_directoryWatcher.addFile(projectFilePath().toString(), FileSystemWatcher::WatchModifiedDate); connect(&m_directoryWatcher, &FileSystemWatcher::fileChanged, this, [this](const QString &path) { - if (path == project()->projectFilePath().toString()) { + if (path == projectFilePath().toString()) { updateProject(); } });