From 969f242f2e63deef3609809dbc2d70eeb40d81f4 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 3 Dec 2024 13:25:04 +0100 Subject: jsdialog: share code for widget registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - move all helpers for widgets registration into separate file - share code for Widgets, Menu and Popup register Change-Id: I3449721d7e436ff4459edb7990c1af860b78054f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177738 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178205 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- compilerplugins/clang/badstatics.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx index 3a69f78caef8..bb4663f71e35 100644 --- a/compilerplugins/clang/badstatics.cxx +++ b/compilerplugins/clang/badstatics.cxx @@ -208,8 +208,11 @@ public: || (loplugin::DeclCheck(pVarDecl).Var("maThreadSpecific") .Class("ScDocument").GlobalNamespace()) // not owning || name == "s_aLOKWindowsMap" // LOK only, guarded by assert, and LOK never tries to perform a VCL cleanup - || name == "s_aLOKWeldBuildersMap" // LOK only, similar case as above - || name == "s_aLOKPopupsMap" // LOK only, similar case as above + // vcl/inc/jsdialog/jsdialogbuilder.hxx + || name == "m_aWidgets" // LOK only, similar case as above + || name == "m_aPopups" // LOK only, similar case as above + || name == "m_aMenus" // LOK only, similar case as above + // || name == "gNotebookBarManager" // LOK only case, when notebookbar is closed - VclPtr instance is removed || name == "gStaticManager" // vcl/source/graphic/Manager.cxx - stores non-owning pointers || name == "aThreadedInterpreterPool" // ScInterpreterContext(Pool), not owning -- cgit