aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/baseeditordocumentparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/baseeditordocumentparser.h')
-rw-r--r--src/plugins/cppeditor/baseeditordocumentparser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/baseeditordocumentparser.h b/src/plugins/cppeditor/baseeditordocumentparser.h
index 2f48058b8b..6e7bf4326f 100644
--- a/src/plugins/cppeditor/baseeditordocumentparser.h
+++ b/src/plugins/cppeditor/baseeditordocumentparser.h
@@ -30,6 +30,8 @@
#include "cppworkingcopy.h"
#include "projectpart.h"
+#include <projectexplorer/project.h>
+
#include <QFutureInterface>
#include <QObject>
#include <QMutex>
@@ -65,14 +67,14 @@ public:
Utils::Language languagePreference,
bool projectsUpdated)
: workingCopy(workingCopy)
- , activeProject(activeProject)
+ , activeProject(activeProject ? activeProject->projectFilePath() : Utils::FilePath())
, languagePreference(languagePreference)
, projectsUpdated(projectsUpdated)
{
}
WorkingCopy workingCopy;
- const ProjectExplorer::Project *activeProject = nullptr;
+ const Utils::FilePath activeProject;
Utils::Language languagePreference = Utils::Language::Cxx;
bool projectsUpdated = false;
};
@@ -104,7 +106,7 @@ protected:
static ProjectPartInfo determineProjectPart(const QString &filePath,
const QString &preferredProjectPartId,
const ProjectPartInfo &currentProjectPartInfo,
- const ProjectExplorer::Project *activeProject,
+ const Utils::FilePath &activeProject,
Utils::Language languagePreference,
bool projectsUpdated);