From 56488c9dbc6a25d35533d878804184036644282e Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Wed, 29 May 2024 16:30:17 +0800 Subject: [PATCH] fix CI build (#442) --- RedPandaIDE/problems/competitivecompenionhandler.h | 2 +- RedPandaIDE/xmake.lua | 2 ++ libs/qsynedit/qsynedit/qsynedit.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/problems/competitivecompenionhandler.h b/RedPandaIDE/problems/competitivecompenionhandler.h index a12e6098..7a7bc875 100644 --- a/RedPandaIDE/problems/competitivecompenionhandler.h +++ b/RedPandaIDE/problems/competitivecompenionhandler.h @@ -21,7 +21,7 @@ #include #include -class OJProblem; +struct OJProblem; using POJProblem = std::shared_ptr; class QTcpSocket; diff --git a/RedPandaIDE/xmake.lua b/RedPandaIDE/xmake.lua index f58e2e20..a3510fcc 100644 --- a/RedPandaIDE/xmake.lua +++ b/RedPandaIDE/xmake.lua @@ -88,6 +88,8 @@ target("RedPandaIDE") -- parser "parser/cppparser", "parser/statementmodel", + -- problems + "problems/competitivecompenionhandler", -- settings dialog "settingsdialog/settingswidget", -- widgets diff --git a/libs/qsynedit/qsynedit/qsynedit.h b/libs/qsynedit/qsynedit/qsynedit.h index 6c385526..f05daf14 100644 --- a/libs/qsynedit/qsynedit/qsynedit.h +++ b/libs/qsynedit/qsynedit/qsynedit.h @@ -138,7 +138,7 @@ class TokenAttribute; using PTokenAttribute = std::shared_ptr; class Document; using PDocument = std::shared_ptr; -class SyntaxState; +struct SyntaxState; class Syntaxer; using PSyntaxer = std::shared_ptr; class UndoList;