diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 16:00:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | 04aed0574fdfd3f173c32d2370c8596e63fba3b1 (patch) | |
tree | c073aa9184a741a847a2150ba13e2b564dde2fc5 /writerperfect | |
parent | dad4ddbbde689340d90f0480b838577dbbe618fe (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I7b11fa9efc507635506bfedb141ad02c2afa68c9
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/inc/WPXSvInputStream.hxx | 2 | ||||
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/writerperfect/inc/WPXSvInputStream.hxx b/writerperfect/inc/WPXSvInputStream.hxx index 8b3cf1051306..06eddfd09d14 100644 --- a/writerperfect/inc/WPXSvInputStream.hxx +++ b/writerperfect/inc/WPXSvInputStream.hxx @@ -38,7 +38,7 @@ class WPXSvInputStreamImpl; class WRITERPERFECT_DLLPUBLIC WPXSvInputStream : public librevenge::RVNGInputStream { public: - WPXSvInputStream(css::uno::Reference< css::io::XInputStream > xStream); + WPXSvInputStream(css::uno::Reference< css::io::XInputStream > const & xStream); virtual ~WPXSvInputStream(); virtual bool isStructured() override; diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index caaf3f34214b..fd0bd791ca66 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -400,7 +400,7 @@ class WPXSvInputStreamImpl { public: explicit WPXSvInputStreamImpl(css::uno::Reference< - css::io::XInputStream > xStream); + css::io::XInputStream > const & xStream); ~WPXSvInputStreamImpl(); bool isStructured(); @@ -442,7 +442,7 @@ public: unsigned long mnReadBufferPos; }; -WPXSvInputStreamImpl::WPXSvInputStreamImpl(Reference< XInputStream > xStream) : +WPXSvInputStreamImpl::WPXSvInputStreamImpl(Reference< XInputStream > const & xStream) : mxStream(xStream), mxSeekable(xStream, UNO_QUERY), maData(0), @@ -809,7 +809,7 @@ void WPXSvInputStreamImpl::ensureZipIsInitialized() mpZipStorage->initialize(); } -WPXSvInputStream::WPXSvInputStream(Reference< XInputStream > xStream) : +WPXSvInputStream::WPXSvInputStream(Reference< XInputStream > const & xStream) : mpImpl(new WPXSvInputStreamImpl(xStream)) { } |