summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:14:42 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-04-30 18:53:26 +0200
commitbad7f6376f96a008c1b1a77d262953c13eb8442b (patch)
tree887dee8e3fbd585ac224d342a3218b3a4f3aff62 /sfx2/source/dialog
parent116adf5341c681e4044f9fe940d0d143eeabc457 (diff)
Use getXWeak in sfx2
Change-Id: I364f13308adf8b3257e53da2bc6576088bb958f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150867 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/backingcomp.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/dialog/backingcomp.cxx b/sfx2/source/dialog/backingcomp.cxx
index 845435ddc4f4..2f3dc01744fc 100644
--- a/sfx2/source/dialog/backingcomp.cxx
+++ b/sfx2/source/dialog/backingcomp.cxx
@@ -329,12 +329,12 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f
if (m_xFrame.is())
throw css::uno::RuntimeException(
"already attached",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
if (!xFrame.is())
throw css::uno::RuntimeException(
"invalid frame reference",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
if (!m_xWindow.is())
return; // disposed
@@ -513,7 +513,7 @@ void SAL_CALL BackingComp::disposing( /*IN*/ const css::lang::EventObject& aEven
if (!aEvent.Source.is() || aEvent.Source!=m_xWindow || !m_xWindow.is())
throw css::uno::RuntimeException(
"unexpected source or called twice",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
m_xWindow.clear();
@@ -575,7 +575,7 @@ void SAL_CALL BackingComp::addEventListener( /*IN*/ const css::uno::Reference< c
{
throw css::uno::RuntimeException(
"not supported",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
}
@@ -618,7 +618,7 @@ void SAL_CALL BackingComp::initialize( /*IN*/ const css::uno::Sequence< css::uno
if (m_xWindow.is())
throw css::uno::Exception(
"already initialized",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
css::uno::Reference< css::awt::XWindow > xParentWindow;
if (
@@ -629,7 +629,7 @@ void SAL_CALL BackingComp::initialize( /*IN*/ const css::uno::Sequence< css::uno
{
throw css::uno::Exception(
"wrong or corrupt argument list",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
}
// create the component window
@@ -640,7 +640,7 @@ void SAL_CALL BackingComp::initialize( /*IN*/ const css::uno::Sequence< css::uno
if (!m_xWindow.is())
throw css::uno::RuntimeException(
"couldn't create component window",
- static_cast< ::cppu::OWeakObject* >(this));
+ getXWeak());
// start listening for window disposing
// It's set at our owner frame as component window later too. So it will may be disposed there ...