From 81b524c9ed106e46c610f4a6ae41f523f9100d58 Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Fri, 12 Nov 2021 02:31:45 +0800 Subject: [PATCH] dont save parser when code/header completion popup hides --- NEWS.md | 2 +- RedPandaIDE/widgets/codecompletionpopup.cpp | 1 + RedPandaIDE/widgets/headercompletionpopup.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index da86628b..2b9ff2fe 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,5 @@ Version 0.8.6 For Dev-C++ 7 Beta - - enhancement: greatly reduces memory usage for symbol parsing ( memory needed for bits/stdc++.h reduced from 150m+ to 50m+) + - enhancement: greatly reduces memory usage for symbol parsing ( memory needed for bits/stdc++.h reduced from 150m+ to 80m+) - fix: currect compiler set not correctly updated when switch between normal file and project file Version 0.8.5 For Dev-C++ 7 Beta diff --git a/RedPandaIDE/widgets/codecompletionpopup.cpp b/RedPandaIDE/widgets/codecompletionpopup.cpp index 9bc19456..78dbc867 100644 --- a/RedPandaIDE/widgets/codecompletionpopup.cpp +++ b/RedPandaIDE/widgets/codecompletionpopup.cpp @@ -894,6 +894,7 @@ void CodeCompletionPopup::hideEvent(QHideEvent *event) mIncludedFiles.clear(); mUsings.clear(); mAddedStatements.clear(); + mParser = nullptr; QWidget::hideEvent(event); } diff --git a/RedPandaIDE/widgets/headercompletionpopup.cpp b/RedPandaIDE/widgets/headercompletionpopup.cpp index 865ea1ad..3ec95200 100644 --- a/RedPandaIDE/widgets/headercompletionpopup.cpp +++ b/RedPandaIDE/widgets/headercompletionpopup.cpp @@ -227,6 +227,7 @@ void HeaderCompletionPopup::hideEvent(QHideEvent *) { mCompletionList.clear(); mFullCompletionList.clear(); + mParser = nullptr; } bool HeaderCompletionPopup::event(QEvent *event)