From b8eb2946511ce617323b13dffe2b1d9704e0be60 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Apr 2016 10:20:52 +0200 Subject: loplugin:passstuffbyref in various Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022 --- package/inc/ZipOutputEntry.hxx | 2 +- package/inc/ZipOutputStream.hxx | 2 +- package/inc/ZipPackageBuffer.hxx | 2 +- package/source/zipapi/ZipOutputStream.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'package') diff --git a/package/inc/ZipOutputEntry.hxx b/package/inc/ZipOutputEntry.hxx index cac0c2ffa584..14882bef9cdc 100644 --- a/package/inc/ZipOutputEntry.hxx +++ b/package/inc/ZipOutputEntry.hxx @@ -72,7 +72,7 @@ public: void createBufferFile(); void setParallelDeflateException(const ::css::uno::Any &rAny) { m_aParallelDeflateException = rAny; } css::uno::Reference< css::io::XInputStream > getData() const; - ::css::uno::Any getParallelDeflateException() const { return m_aParallelDeflateException; } + const css::uno::Any& getParallelDeflateException() const { return m_aParallelDeflateException; } void closeBufferFile(); void deleteBufferFile(); diff --git a/package/inc/ZipOutputStream.hxx b/package/inc/ZipOutputStream.hxx index f995469b29e6..26d7715c05b9 100644 --- a/package/inc/ZipOutputStream.hxx +++ b/package/inc/ZipOutputStream.hxx @@ -57,7 +57,7 @@ public: void finish() throw(css::io::IOException, css::uno::RuntimeException); - css::uno::Reference< css::io::XOutputStream > getStream(); + const css::uno::Reference< css::io::XOutputStream >& getStream(); static sal_uInt32 getCurrentDosTime(); static void setEntry( ZipEntry *pEntry ); diff --git a/package/inc/ZipPackageBuffer.hxx b/package/inc/ZipPackageBuffer.hxx index aba3f29bd519..8278b3db7e2e 100644 --- a/package/inc/ZipPackageBuffer.hxx +++ b/package/inc/ZipPackageBuffer.hxx @@ -40,7 +40,7 @@ public: virtual ~ZipPackageBuffer(); inline void realloc ( sal_Int32 nSize ) { m_aBuffer.realloc ( nSize ); } - inline const css::uno::Sequence < sal_Int8> getSequence () const { return m_aBuffer; } + const css::uno::Sequence < sal_Int8>& getSequence () const { return m_aBuffer; } // XInputStream virtual sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) diff --git a/package/source/zipapi/ZipOutputStream.cxx b/package/source/zipapi/ZipOutputStream.cxx index 8cd8b9056989..c5307cea1c10 100644 --- a/package/source/zipapi/ZipOutputStream.cxx +++ b/package/source/zipapi/ZipOutputStream.cxx @@ -189,7 +189,7 @@ void ZipOutputStream::finish() m_aZipList.clear(); } -css::uno::Reference< css::io::XOutputStream > ZipOutputStream::getStream() +const css::uno::Reference< css::io::XOutputStream >& ZipOutputStream::getStream() { return m_xStream; } -- cgit