summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-18 11:21:44 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-18 10:51:54 +0000
commit67d333c608a662621c1069aacdec75e45e33a183 (patch)
tree9b2715c5d159acc881627fe461c501fd4db91abf /compilerplugins
parent0c1e6136ca84ec3bd2c0bb96689c0235b8585b25 (diff)
tdf#99352 - Some VclPtrs leak past DeInitVCL
Change-Id: I74b27b1d8b662a644df580ae128643b8495355f8 Reviewed-on: https://gerrit.libreoffice.org/24204 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/badstatics.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx
index ecc930093a3a..d3fc83127fde 100644
--- a/compilerplugins/clang/badstatics.cxx
+++ b/compilerplugins/clang/badstatics.cxx
@@ -146,13 +146,9 @@ public:
{
return true;
}
- // TODO: check these VclPtr<> static fields
- if ( name == "xPreviousWindow" // vcl/source/window/winproc.cxx
- || name == "vDev" // sdext/source/pdfimport/wrapper/wrapper.cxx
- || name == "s_xEmptyController" // svx/source/fmcomp/gridcell.cxx
+ // these two are fairly harmless because they're both empty objects
+ if ( name == "s_xEmptyController" // svx/source/fmcomp/gridcell.cxx
|| name == "xCell" // svx/source/table/svdotable.cxx
- || name == "pPixOut" // sw/source/core/txtnode/fntcache.cxx
- || name == "mpCareWindow" // sw/source/core/view/viewsh.cxx
)
{
return true;