diff options
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)) { } |