From c99ce1f455189864de9a2043730f704d7b024abf Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 4 Jan 2023 11:25:23 +0100 Subject: ExtraCompiler: Expose TaskItem for compile task This is an intermediate state before employing one common TaskTree inside CppProjectUpdater. Use multiple one-task TaskTrees for now. Refactor ExtraCompiler so that there is only one pure virtual method to be implemented (taskItem()) instead of two (2 run() overloads). Use TaskTree inside ExtraCompiler for running the compilation process. Change-Id: I6884934508e043594589d117f6d3f0aed94b84c2 Reviewed-by: Christian Kandeler --- src/plugins/python/pythonlanguageclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/python/pythonlanguageclient.cpp') diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 33181d4516..3e36c27e78 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -249,7 +249,7 @@ void PyLSClient::updateExtraCompilers(ProjectExplorer::Project *project, updateExtraCompilerContents(extraCompiler, file); }); if (extraCompiler->isDirty()) - static_cast(extraCompiler)->run(); + extraCompiler->compileFile(); } else { m_extraCompilers[project] << oldCompilers.takeAt(index); } -- cgit v1.2.1