diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-10 12:55:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-10 14:42:59 +0200 |
commit | 8075ef1a616da27ea1fb65e988e5ef5764d8ec11 (patch) | |
tree | 87e072a1af2147936acd37dd604eb83a0b6db179 /sw/source | |
parent | 3246cfff9af705399eda37997179b51c2cc12ccb (diff) |
loplugin:staticconstfield
(no idea why that only started to show now; Clang 10 on macOS here)
Change-Id: Ie9115e7c2396378f31f85ae592841711e58c6b1d
Reviewed-on: https://gerrit.libreoffice.org/77237
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/inc/unoevent.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unoevent.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/inc/unoevent.hxx b/sw/source/core/inc/unoevent.hxx index 1989a6f35dae..6e533a079017 100644 --- a/sw/source/core/inc/unoevent.hxx +++ b/sw/source/core/inc/unoevent.hxx @@ -53,8 +53,6 @@ public: // All these objects are an SwXFrame, so they can use a common implementation class SwFrameEventDescriptor : public SvEventDescriptor { - OUString const sSwFrameEventDescriptor; - SwXFrame& rFrame; public: diff --git a/sw/source/core/unocore/unoevent.cxx b/sw/source/core/unocore/unoevent.cxx index 9ba8268f7fbe..0d00638da1dd 100644 --- a/sw/source/core/unocore/unoevent.cxx +++ b/sw/source/core/unocore/unoevent.cxx @@ -157,7 +157,6 @@ void SwHyperlinkEventDescriptor::copyMacrosFromNameReplace( SwFrameEventDescriptor::SwFrameEventDescriptor( SwXTextFrame& rFrameRef ) : SvEventDescriptor(static_cast<text::XTextFrame&>(rFrameRef), aFrameEvents), - sSwFrameEventDescriptor("SwFrameEventDescriptor"), rFrame(rFrameRef) { } @@ -197,7 +196,7 @@ sal_uInt16 SwFrameEventDescriptor::getMacroItemWhich() const OUString SwFrameEventDescriptor::getImplementationName() { - return sSwFrameEventDescriptor; + return "SwFrameEventDescriptor"; } SwFrameStyleEventDescriptor::SwFrameStyleEventDescriptor( |