Use getXWeak in sax
Change-Id: I24d61be2a1e1c21c08e50790b2d7bbb794c4fb07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150862 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
d74c010192
commit
d4d9943214
2 changed files with 3 additions and 4 deletions
|
@ -1035,8 +1035,8 @@ public: // XActiveDataSource
|
|||
}
|
||||
catch (const SAXException& e)
|
||||
{
|
||||
throw css::lang::WrappedTargetRuntimeException(
|
||||
e.Message, static_cast<OWeakObject*>(this), e.WrappedException);
|
||||
throw css::lang::WrappedTargetRuntimeException(e.Message, getXWeak(),
|
||||
e.WrappedException);
|
||||
}
|
||||
}
|
||||
virtual Reference<XOutputStream> SAL_CALL getOutputStream() override { return m_out; }
|
||||
|
|
|
@ -83,8 +83,7 @@ private:
|
|||
/// @note for external binding
|
||||
Reference < XInterface > SAL_CALL OSaxParserTest_CreateInstance( const Reference < XMultiServiceFactory > & rSMgr ) throw(Exception)
|
||||
{
|
||||
OSaxParserTest *p = new OSaxParserTest( rSMgr );
|
||||
return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) );
|
||||
return getXWeak(new OSaxParserTest( rSMgr ));
|
||||
}
|
||||
|
||||
OUString OSaxParserTest_getServiceName( ) throw ()
|
||||
|
|
Loading…
Reference in a new issue