From c5cd30eb2a8dd29fbecb9d8b912b314a1b8dba08 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 3 May 2024 08:38:00 +0800 Subject: [PATCH] fix: compile error --- RedPandaIDE/parser/cppparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/parser/cppparser.h b/RedPandaIDE/parser/cppparser.h index a4f3057f..64bc9cc2 100644 --- a/RedPandaIDE/parser/cppparser.h +++ b/RedPandaIDE/parser/cppparser.h @@ -121,7 +121,7 @@ public: bool isSystemHeaderFile(const QString& fileName); void parseFile(const QString& fileName, bool inProject, bool onlyIfNotParsed = false, bool updateView = true, - std::weak_ptr parserPtr = nullptr); + std::weak_ptr parserPtr = std::weak_ptr{}); void parseFileList(bool updateView = true); void parseHardDefines(); bool parsing() const;