diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-17 16:21:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-17 16:21:51 +0100 |
commit | 097f8d6dbcb904926dbb04c6fbedda08cbf69c51 (patch) | |
tree | f7b1d8f95379ee31968cc7bc7f37719ccc5c0265 /compilerplugins/clang/badstatics.cxx | |
parent | 8d8e2f1d69cb5d457e810c3178f0654981962dfc (diff) |
Work around loplugin:badstatics
...about
static ImplImageTree instance;
in ImplImageTree::get (vcl/source/gdi/impimagetree.cxx) due to
StyleIconSet ImplImageTree::maIconSet;
(of type std::unordered_map<OUString, IconSet, OUStringHash>) due to
IconCache ImplImageTree::IconSet::maIconCache;
(of type std::unordered_map<OUString, std::pair<bool, BitmapEx>, OUStringHash>),
reported at least when building against Mac libc++. This is a false positive,
as ImplImageTree::shutDown cleans this up.
Change-Id: Idb1a99aa33f71286e57b31b7adb833e3ee8b5f5a
Diffstat (limited to 'compilerplugins/clang/badstatics.cxx')
-rw-r--r-- | compilerplugins/clang/badstatics.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx index 55d807033b7d..a1336cceb2bb 100644 --- a/compilerplugins/clang/badstatics.cxx +++ b/compilerplugins/clang/badstatics.cxx @@ -134,6 +134,7 @@ public: || name == "g_pHyphIter" // SwEditShell::HyphEnd() || name == "pFieldEditEngine" // ScGlobal::Clear() || name == "xDrawClipDocShellRef" // ScGlobal::Clear() + || name == "instance" // ImplImageTree::get() ) // these variables appear unproblematic { return true; |