Use getXWeak in linguistic

Change-Id: I1202763917dab414e8bc540bd89d736e74fa1450
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150858
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski
2023-04-23 20:14:13 +03:00
parent 4cedea47f9
commit ee3b2907ea

View File

@@ -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,