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;