diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-19 11:28:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-19 13:15:56 +0100 |
commit | de9d840743413470aa57333fbe540d6c8f7dffb1 (patch) | |
tree | 46d40f8af0ad5a0838e55081bf744f4d30565087 /ucb/source/core | |
parent | 3f95cbcda193c2e87159ba3e8c137f8a12643c84 (diff) |
loplugin:refcounting in ucb
Change-Id: Ib62c99b9cb71adda5c94d268f726949117163ede
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111200
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/core')
-rw-r--r-- | ucb/source/core/FileAccess.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx index 139c05cb500a..c998318924ff 100644 --- a/ucb/source/core/FileAccess.cxx +++ b/ucb/source/core/FileAccess.cxx @@ -543,10 +543,9 @@ Reference< XStream > OFileAccess::openFileReadWrite( const OUString& FileURL ) { // Create file... SvMemoryStream aStream(0,0); - ::utl::OInputStreamWrapper* pInput = new ::utl::OInputStreamWrapper( aStream ); - Reference< XInputStream > xInput( pInput ); + rtl::Reference<::utl::OInputStreamWrapper> pInput = new ::utl::OInputStreamWrapper( aStream ); InsertCommandArgument aInsertArg; - aInsertArg.Data = xInput; + aInsertArg.Data = pInput; aInsertArg.ReplaceExisting = false; aCmdArg <<= aInsertArg; |