diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-18 09:22:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-27 06:48:25 +0000 |
commit | 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch) | |
tree | d1c8626818cbf26a699875ae2d82f751a1657e92 /package | |
parent | 9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff) |
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/ZipPackageStream.hxx | 2 | ||||
-rw-r--r-- | package/source/xstor/owriteablestream.cxx | 6 | ||||
-rw-r--r-- | package/source/xstor/owriteablestream.hxx | 6 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx index aa6b45f17048..67f536816a0a 100644 --- a/package/inc/ZipPackageStream.hxx +++ b/package/inc/ZipPackageStream.hxx @@ -72,7 +72,7 @@ private: bool m_bRawStream; /// Check that m_xStream implements io::XSeekable and return it - css::uno::Reference< css::io::XInputStream > GetOwnSeekStream(); + css::uno::Reference< css::io::XInputStream > const & GetOwnSeekStream(); css::uno::Reference< css::io::XInputStream > SAL_CALL getRawData() throw(css::uno::RuntimeException); diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index 97342933d60f..7e600238c3bd 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -511,7 +511,7 @@ void OWriteStream_Impl::DisposeWrappers() } } -OUString OWriteStream_Impl::GetFilledTempFileIfNo( const uno::Reference< io::XInputStream >& xStream ) +OUString const & OWriteStream_Impl::GetFilledTempFileIfNo( const uno::Reference< io::XInputStream >& xStream ) { if ( !m_aTempURL.getLength() ) { @@ -560,7 +560,7 @@ OUString OWriteStream_Impl::GetFilledTempFileIfNo( const uno::Reference< io::XIn return m_aTempURL; } -OUString OWriteStream_Impl::FillTempGetFileName() +OUString const & OWriteStream_Impl::FillTempGetFileName() { // should try to create cache first, if the amount of contents is too big, the temp file should be taken if ( !m_xCacheStream.is() && m_aTempURL.isEmpty() ) @@ -955,7 +955,7 @@ void OWriteStream_Impl::Revert() } } -uno::Sequence< beans::PropertyValue > OWriteStream_Impl::GetStreamProperties() +uno::Sequence< beans::PropertyValue > const & OWriteStream_Impl::GetStreamProperties() { if ( !m_aProps.getLength() ) m_aProps = ReadPackageStreamProperties(); diff --git a/package/source/xstor/owriteablestream.hxx b/package/source/xstor/owriteablestream.hxx index a1dcaf3f5587..63c7fccee258 100644 --- a/package/source/xstor/owriteablestream.hxx +++ b/package/source/xstor/owriteablestream.hxx @@ -124,8 +124,8 @@ struct OWriteStream_Impl : public MutexHolder sal_Int32 m_nRelId; private: - OUString GetFilledTempFileIfNo( const css::uno::Reference< css::io::XInputStream >& xStream ); - OUString FillTempGetFileName(); + OUString const & GetFilledTempFileIfNo( const css::uno::Reference< css::io::XInputStream >& xStream ); + OUString const & FillTempGetFileName(); css::uno::Reference< css::io::XStream > GetTempFileAsStream(); css::uno::Reference< css::io::XInputStream > GetTempFileAsInputStream(); @@ -187,7 +187,7 @@ public: void Commit(); void Revert(); - css::uno::Sequence< css::beans::PropertyValue > GetStreamProperties(); + css::uno::Sequence< css::beans::PropertyValue > const & GetStreamProperties(); css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > GetAllRelationshipsIfAny(); diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index e72c3999c9f5..a07fa0f956e0 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -149,7 +149,7 @@ void ZipPackageStream::CloseOwnStreamIfAny() } } -uno::Reference< io::XInputStream > ZipPackageStream::GetOwnSeekStream() +uno::Reference< io::XInputStream > const & ZipPackageStream::GetOwnSeekStream() { if ( !m_bHasSeekable && m_xStream.is() ) { |