summaryrefslogtreecommitdiff
path: root/eventattacher/source/eventattacher.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:13:41 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-05-28 10:03:41 +0200
commit6bff407d3b62713ec9946086e8c381e0d3f9d842 (patch)
tree58700fd4e083cb69f83db5925591445c08a1e35e /eventattacher/source/eventattacher.cxx
parentc19c775c0b54e797b4b7a30f9acf6a34efeaacca (diff)
Use getXWeak in eventattacher
Change-Id: I5f10d1404f28d3a16301bbfd755bdbc3886b16a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150848 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'eventattacher/source/eventattacher.cxx')
-rw-r--r--eventattacher/source/eventattacher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx
index f344e0cccb0d..d4ffa6be3ebe 100644
--- a/eventattacher/source/eventattacher.cxx
+++ b/eventattacher/source/eventattacher.cxx
@@ -158,7 +158,7 @@ Any SAL_CALL InvocationToAllListenerMapper::invoke(const OUString& FunctionName,
}
AllEventObject aAllEvent;
- aAllEvent.Source = static_cast<OWeakObject*>(this);
+ aAllEvent.Source = getXWeak();
aAllEvent.Helper = m_Helper;
aAllEvent.ListenerType = Type(m_xListenerType->getTypeClass(), m_xListenerType->getName());
aAllEvent.MethodName = FunctionName;