From 0b00f5fba6c4f8b4484747bbc467f18d0a7acf67 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Tue, 16 Jul 2024 11:51:35 +0200 Subject: [PATCH] replace 'CppProjectUpdater' -> 'ProjectUpdater' --- src/project_manager/ros_project.cpp | 2 +- src/project_manager/ros_project.h | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/project_manager/ros_project.cpp b/src/project_manager/ros_project.cpp index cab1bb45..f4afa567 100644 --- a/src/project_manager/ros_project.cpp +++ b/src/project_manager/ros_project.cpp @@ -127,7 +127,7 @@ const int UPDATE_INTERVAL = 300; ROSProject::ROSProject(const Utils::FilePath &fileName) : ProjectExplorer::Project(Constants::ROS_MIME_TYPE, fileName), - m_cppCodeModelUpdater(new CppEditor::CppProjectUpdater), + m_cppCodeModelUpdater(ProjectUpdaterFactory::createCppProjectUpdater()), m_project_loaded(false), m_asyncUpdateFutureInterface(nullptr), m_asyncBuildCodeModelFutureInterface(nullptr) diff --git a/src/project_manager/ros_project.h b/src/project_manager/ros_project.h index 84bacd27..4540bef3 100644 --- a/src/project_manager/ros_project.h +++ b/src/project_manager/ros_project.h @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -39,10 +40,6 @@ #include #include -namespace CppEditor { - class CppProjectUpdater; -} - namespace ROSProjectManager { namespace Internal { @@ -88,7 +85,7 @@ private slots: ROSUtils::PackageInfoMap m_wsPackageInfo; ROSUtils::PackageBuildInfoMap m_wsPackageBuildInfo; - CppEditor::CppProjectUpdater *m_cppCodeModelUpdater; + ProjectExplorer::ProjectUpdater *m_cppCodeModelUpdater; // Watching Directories to keep Project Tree updated QTimer m_asyncUpdateTimer;