loplugin:refcounting in xmlhelp

Change-Id: Ida82bee18d0828f299db0e87ecb2faf67432dc4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111170
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel
2021-02-19 08:46:22 +01:00
committed by Noel Grandin
parent 85e51d1fb5
commit 34ad5eaebf
2 changed files with 2 additions and 5 deletions
@@ -499,9 +499,7 @@ void SAL_CALL ResultSetBase::removeVetoableChangeListener(
uno::Reference< sdbc::XResultSetMetaData > SAL_CALL
ResultSetBase::getMetaData()
{
::ucbhelper::ResultSetMetaData* p =
new ::ucbhelper::ResultSetMetaData( m_xContext, m_sProperty );
return uno::Reference< sdbc::XResultSetMetaData >( p );
return new ::ucbhelper::ResultSetMetaData( m_xContext, m_sProperty );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -2
View File
@@ -83,8 +83,7 @@ TVFactory::createInstanceWithArguments(
{
if( ! m_xHDS.is() )
{
cppu::OWeakObject* p = new TVChildTarget( m_xContext );
m_xHDS.set( p );
m_xHDS = static_cast<cppu::OWeakObject*>(new TVChildTarget( m_xContext ));
}
OUString hierview;