summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index e59ddae7bea5..e12ae7930853 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -808,15 +808,15 @@ Reference< XHierarchicalNameAccess > Databases::jarFile( const OUString& jar,
Sequence< Any > aArguments( 2 );
- XInputStream_impl* p = new XInputStream_impl( zipFile );
+ std::unique_ptr<XInputStream_impl> p(new XInputStream_impl( zipFile ));
if( p->CtorSuccess() )
{
- Reference< XInputStream > xInputStream( p );
+ Reference< XInputStream > xInputStream( p.release() );
aArguments[ 0 ] <<= xInputStream;
}
else
{
- delete p;
+ p.reset();
aArguments[ 0 ] <<= zipFile;
}