diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-19 08:39:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-19 08:46:22 +0100 |
commit | 34ad5eaebf6548f6006d97aa46837ca1f1dd141b (patch) | |
tree | c12268d8d814b34ad03748a11fc329e89e41690a /xmlhelp | |
parent | 85e51d1fb5ed3019ef2409c8c8a7721148bb4178 (diff) |
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>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvfactory.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index 4a88add7e5b2..9f8d96150e74 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -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: */ diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx index fb879a5c3229..ec2790032b6d 100644 --- a/xmlhelp/source/treeview/tvfactory.cxx +++ b/xmlhelp/source/treeview/tvfactory.cxx @@ -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; |