From 623c2f723b3c599f05988c6d4db2a8e72a32c02d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 7 Jul 2016 15:58:24 +0200 Subject: loplugin:passstuffbyref also for {css::uno,rtl}::Reference Change-Id: I678e89d9ff562446e7bbe8542a616c1b083dfcd1 --- scripting/source/stringresource/stringresource.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripting') diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 7ff477c0b5f7..9d71b74f9311 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1215,7 +1215,7 @@ class BinaryOutput Reference< io::XOutputStream > m_xOutputStream; public: - explicit BinaryOutput( Reference< XComponentContext > xContext ); + explicit BinaryOutput( Reference< XComponentContext > const & xContext ); const Reference< io::XOutputStream >& getOutputStream() const { return m_xOutputStream; } @@ -1233,7 +1233,7 @@ public: void writeString( const OUString& aStr ); }; -BinaryOutput::BinaryOutput( Reference< XComponentContext > xContext ) +BinaryOutput::BinaryOutput( Reference< XComponentContext > const & xContext ) : m_xContext( xContext ) { m_xTempFile = io::TempFile::create( m_xContext ); @@ -1429,7 +1429,7 @@ class BinaryInput sal_Int32 m_nSize; public: - BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XComponentContext > xContext ); + BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XComponentContext > const & xContext ); Reference< io::XInputStream > getInputStreamForSection( sal_Int32 nSize ); @@ -1443,7 +1443,7 @@ public: OUString readString(); }; -BinaryInput::BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XComponentContext > xContext ) +BinaryInput::BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XComponentContext > const & xContext ) : m_aData( aData ) , m_xContext( xContext ) { @@ -2104,7 +2104,7 @@ void implWriteCharToBuffer( OUStringBuffer& aBuf, sal_Unicode cu, bool bKey ) } void implWriteStringWithEncoding( const OUString& aStr, - Reference< io::XTextOutputStream2 > xTextOutputStream, bool bKey ) + Reference< io::XTextOutputStream2 > const & xTextOutputStream, bool bKey ) { static sal_Unicode cLineFeed = 0xa; -- cgit