diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-15 20:02:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 07:52:03 +0100 |
commit | 99bc040b134c8cece576196fb338954ced7c0f24 (patch) | |
tree | fd9da19888fbbec2c41a71ae8419acbe285fd5a2 /package/source/zipapi | |
parent | d5bb28663dbca1ce48c22f4e7ac1ee6e7a6f597f (diff) |
loplugin:referencecasting in oox..package
Change-Id: I4276c6c45cb2478afbc0231a15c402ddcafd00a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110950
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/source/zipapi')
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 6 | ||||
-rw-r--r-- | package/source/zipapi/blowfishcontext.cxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/sha1context.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 2a76c7b750ed..6ee7bdc0d43d 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -647,15 +647,15 @@ uno::Reference< XInputStream > ZipFile::createStreamForZipEntry( m_xContext, aMutexHolder, rEntry, xStream, rData, nStreamMode, bIsEncrypted, aMediaType, bRecoveryMode); if (!bUseBufferedStream) - return xSrcStream.get(); + return xSrcStream; uno::Reference<io::XInputStream> xBufStream; static const sal_Int32 nThreadingThreshold = 10000; if( xSrcStream->available() > nThreadingThreshold ) - xBufStream = new XBufferedThreadedStream(xSrcStream.get(), xSrcStream->getSize()); + xBufStream = new XBufferedThreadedStream(xSrcStream, xSrcStream->getSize()); else - xBufStream = new XBufferedStream(xSrcStream.get()); + xBufStream = new XBufferedStream(xSrcStream); return xBufStream; } diff --git a/package/source/zipapi/blowfishcontext.cxx b/package/source/zipapi/blowfishcontext.cxx index 37e614581e36..506c6267aa28 100644 --- a/package/source/zipapi/blowfishcontext.cxx +++ b/package/source/zipapi/blowfishcontext.cxx @@ -48,7 +48,7 @@ uno::Reference< xml::crypto::XCipherContext > BlowfishCFB8CipherContext::Create( xResult->m_bEncrypt = bEncrypt; - return uno::Reference< xml::crypto::XCipherContext >( xResult.get() ); + return xResult; } BlowfishCFB8CipherContext::~BlowfishCFB8CipherContext() diff --git a/package/source/zipapi/sha1context.cxx b/package/source/zipapi/sha1context.cxx index af3123e2dbd0..c036041a2d76 100644 --- a/package/source/zipapi/sha1context.cxx +++ b/package/source/zipapi/sha1context.cxx @@ -36,7 +36,7 @@ uno::Reference<xml::crypto::XDigestContext> StarOfficeSHA1DigestContext::Create( if ( !xResult->m_pDigest ) throw uno::RuntimeException("Can not create cipher!" ); - return uno::Reference< xml::crypto::XDigestContext >( xResult.get() ); + return xResult; } StarOfficeSHA1DigestContext::~StarOfficeSHA1DigestContext() |