Kaydet (Commit) 623c2f72 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:passstuffbyref also for {css::uno,rtl}::Reference

Change-Id: I678e89d9ff562446e7bbe8542a616c1b083dfcd1
üst c6ef0309
...@@ -1215,7 +1215,7 @@ class BinaryOutput ...@@ -1215,7 +1215,7 @@ class BinaryOutput
Reference< io::XOutputStream > m_xOutputStream; Reference< io::XOutputStream > m_xOutputStream;
public: public:
explicit BinaryOutput( Reference< XComponentContext > xContext ); explicit BinaryOutput( Reference< XComponentContext > const & xContext );
const Reference< io::XOutputStream >& getOutputStream() const const Reference< io::XOutputStream >& getOutputStream() const
{ return m_xOutputStream; } { return m_xOutputStream; }
...@@ -1233,7 +1233,7 @@ public: ...@@ -1233,7 +1233,7 @@ public:
void writeString( const OUString& aStr ); void writeString( const OUString& aStr );
}; };
BinaryOutput::BinaryOutput( Reference< XComponentContext > xContext ) BinaryOutput::BinaryOutput( Reference< XComponentContext > const & xContext )
: m_xContext( xContext ) : m_xContext( xContext )
{ {
m_xTempFile = io::TempFile::create( m_xContext ); m_xTempFile = io::TempFile::create( m_xContext );
...@@ -1429,7 +1429,7 @@ class BinaryInput ...@@ -1429,7 +1429,7 @@ class BinaryInput
sal_Int32 m_nSize; sal_Int32 m_nSize;
public: 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 ); Reference< io::XInputStream > getInputStreamForSection( sal_Int32 nSize );
...@@ -1443,7 +1443,7 @@ public: ...@@ -1443,7 +1443,7 @@ public:
OUString readString(); 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_aData( aData )
, m_xContext( xContext ) , m_xContext( xContext )
{ {
...@@ -2104,7 +2104,7 @@ void implWriteCharToBuffer( OUStringBuffer& aBuf, sal_Unicode cu, bool bKey ) ...@@ -2104,7 +2104,7 @@ void implWriteCharToBuffer( OUStringBuffer& aBuf, sal_Unicode cu, bool bKey )
} }
void implWriteStringWithEncoding( const OUString& aStr, void implWriteStringWithEncoding( const OUString& aStr,
Reference< io::XTextOutputStream2 > xTextOutputStream, bool bKey ) Reference< io::XTextOutputStream2 > const & xTextOutputStream, bool bKey )
{ {
static sal_Unicode cLineFeed = 0xa; static sal_Unicode cLineFeed = 0xa;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment