diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-25 17:16:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-25 17:16:14 +0200 |
commit | 6810f00d09679644ec5971b235a0ec01dc572a8b (patch) | |
tree | 6d09515ab5c58fddb08f1551be75bfe50202947e /unotools/source | |
parent | b7bf1ba2136b3d1e031673e7b541c6181e95ff61 (diff) |
loplugin:staticaccess: Extend loplugin:staticcall to cover all access...
to static members (data, in addition to function) via class member access
syntax. Also covers the (somewhat obscure) access to enumerator members.
Change-Id: Iec54b8df2fdb423c0caf21a0dd0f9fe8fdf33897
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/config/eventcfg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx index 19226c22e60c..353d1074d4f3 100644 --- a/unotools/source/config/eventcfg.cxx +++ b/unotools/source/config/eventcfg.cxx @@ -26,7 +26,7 @@ #include <cppuhelper/weakref.hxx> #include <o3tl/enumarray.hxx> #include <o3tl/enumrange.hxx> - +#include <rtl/ref.hxx> #include <rtl/ustrbuf.hxx> #include <osl/diagnose.h> @@ -389,7 +389,8 @@ OUString GlobalEventConfig::GetEventName( GlobalEventId nIndex ) { if (utl::ConfigManager::IsAvoidConfig()) return OUString(); - return GlobalEventConfig().m_pImpl->GetEventName( nIndex ); + rtl::Reference<GlobalEventConfig> createImpl(new GlobalEventConfig); + return GlobalEventConfig::m_pImpl->GetEventName( nIndex ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |