diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:58:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | 623c2f723b3c599f05988c6d4db2a8e72a32c02d (patch) | |
tree | 27ad42f4209f7e8bc435c61006b1dbc8557008eb /scripting/source/stringresource | |
parent | c6ef03093eb76274851744ecf463a373a814a47e (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I678e89d9ff562446e7bbe8542a616c1b083dfcd1
Diffstat (limited to 'scripting/source/stringresource')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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; |