summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/cellsuno.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:14:29 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-06-18 10:13:51 +0200
commitf983e193523f9c7ac605627bbf3f3ad576ee7f03 (patch)
tree2bbf8df56795bff4f186eedae192b21784790de3 /sc/source/ui/unoobj/cellsuno.cxx
parent8da305acc9bc1fa0a31cd61d5da632e6bb4ae48c (diff)
Use getXWeak in sc
Change-Id: I6a120265be4e4f2ec859a17459d9d92ea23f00d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150863 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/unoobj/cellsuno.cxx')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 3dc012c0acd1..55f72d3dce09 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -1521,7 +1521,7 @@ void ScCellRangesBase::Notify( SfxBroadcaster&, const SfxHint& rHint )
// dispose listeners
lang::EventObject aEvent;
- aEvent.Source.set(static_cast<cppu::OWeakObject*>(this));
+ aEvent.Source = getXWeak();
for (uno::Reference<util::XModifyListener> & xValueListener : aValueListeners)
xValueListener->disposing( aEvent );
@@ -1547,7 +1547,7 @@ void ScCellRangesBase::Notify( SfxBroadcaster&, const SfxHint& rHint )
// SfxHintId::DataChanged.
lang::EventObject aEvent;
- aEvent.Source.set(static_cast<cppu::OWeakObject*>(this));
+ aEvent.Source = getXWeak();
// the EventObject holds a Ref to this object until after the listener calls
@@ -3829,7 +3829,7 @@ uno::Reference<uno::XInterface> ScCellRangesBase::Find_Impl(
if (bFound)
{
ScAddress aFoundPos( nCol, nRow, nTab );
- xRet.set(static_cast<cppu::OWeakObject*>(new ScCellObj( pDocShell, aFoundPos )));
+ xRet.set(cppu::getXWeak(new ScCellObj( pDocShell, aFoundPos )));
}
}
}