summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmlhelp/source/cxxhelp/provider/resultsetbase.cxx4
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx3
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;