linguistic/source/gciterator.cxx | 2 +- oox/source/export/ColorPropertySet.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit d590454062cfef1b6ede8b75311610874f63e5fa Author: Mike Kaganski <[email protected]> AuthorDate: Sun Apr 23 20:14:16 2023 +0300 Commit: Mike Kaganski <[email protected]> CommitDate: Sat May 6 07:25:24 2023 +0200 Use getXWeak in oox Change-Id: I8211a1fe19bbd900f866c46d5b7ec68a37bc38cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150859 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/oox/source/export/ColorPropertySet.cxx b/oox/source/export/ColorPropertySet.cxx index a0998f195fe4..714870d93e36 100644 --- a/oox/source/export/ColorPropertySet.cxx +++ b/oox/source/export/ColorPropertySet.cxx @@ -67,7 +67,7 @@ Property SAL_CALL lcl_ColorPropertySetInfo::getPropertyByName( const OUString& a { if( aName == m_aColorPropName ) return m_aColorProp; - throw UnknownPropertyException( m_aColorPropName, static_cast< uno::XWeak * >( this )); + throw UnknownPropertyException( m_aColorPropName, getXWeak()); } sal_Bool SAL_CALL lcl_ColorPropertySetInfo::hasPropertyByName( const OUString& Name ) commit ee3b2907eae61fb46fb6fe1511fafaa2a2b60bd3 Author: Mike Kaganski <[email protected]> AuthorDate: Sun Apr 23 20:14:13 2023 +0300 Commit: Mike Kaganski <[email protected]> CommitDate: Sat May 6 07:25:16 2023 +0200 Use getXWeak in linguistic Change-Id: I1202763917dab414e8bc540bd89d736e74fa1450 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150858 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index edd028e31e28..1cd8883705c7 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -956,7 +956,7 @@ void SAL_CALL GrammarCheckingIterator::processLinguServiceEvent( try { - uno::Reference< uno::XInterface > xThis( static_cast< OWeakObject * >(this) ); + uno::Reference< uno::XInterface > xThis( getXWeak() ); linguistic2::LinguServiceEvent aEvent( xThis, linguistic2::LinguServiceEventFlags::PROOFREAD_AGAIN ); m_aNotifyListeners.notifyEach( &linguistic2::XLinguServiceEventListener::processLinguServiceEvent,
