summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/provider/databases.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/databases.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 583de4123e88..1f1a2868c477 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -24,6 +24,7 @@
#include <rtl/character.hxx>
#include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
+#include <rtl/ref.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/awt/Toolkit.hpp>
#include <com/sun/star/i18n/Collator.hpp>
@@ -802,15 +803,14 @@ Reference< XHierarchicalNameAccess > Databases::jarFile( const OUString& jar,
Sequence< Any > aArguments( 2 );
- std::unique_ptr<XInputStream_impl> p(new XInputStream_impl( zipFile ));
+ rtl::Reference<XInputStream_impl> p(new XInputStream_impl( zipFile ));
if( p->CtorSuccess() )
{
- Reference< XInputStream > xInputStream( p.release() );
- aArguments[ 0 ] <<= xInputStream;
+ aArguments[ 0 ] <<= Reference< XInputStream >( p.get() );
}
else
{
- p.reset();
+ p.clear();
aArguments[ 0 ] <<= zipFile;
}