summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-08-10 12:55:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-08-10 14:42:59 +0200
commit8075ef1a616da27ea1fb65e988e5ef5764d8ec11 (patch)
tree87e072a1af2147936acd37dd604eb83a0b6db179
parentassertDocument is only defined for HAVE_FEATURE_GPGVERIFY (diff)
downloadcore-8075ef1a616da27ea1fb65e988e5ef5764d8ec11.tar.gz
core-8075ef1a616da27ea1fb65e988e5ef5764d8ec11.zip
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>
-rw-r--r--sw/source/core/inc/unoevent.hxx2
-rw-r--r--sw/source/core/unocore/unoevent.cxx3
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(