From a7dde8db81624c4f31c93b8611a4636d662f548e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 3 May 2018 16:59:08 +0100 Subject: can make good use of fact its a SvMemorystream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iad581202fab8bace4a730bf2c318718bcc065e9d Reviewed-on: https://gerrit.libreoffice.org/53811 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/source/image/ImplImageTree.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx index d27eaec8d018..296800681fa7 100644 --- a/vcl/source/image/ImplImageTree.cxx +++ b/vcl/source/image/ImplImageTree.cxx @@ -124,14 +124,14 @@ OUString getNameNoExtension(OUString const & sName) return sName.copy(0, nDotPosition); } -std::shared_ptr wrapStream(css::uno::Reference< css::io::XInputStream > const & stream) +std::shared_ptr wrapStream(css::uno::Reference< css::io::XInputStream > const & stream) { // This could use SvInputStream instead if that did not have a broken // SeekPos implementation for an XInputStream that is not also XSeekable // (cf. "@@@" at tags/DEV300_m37/svtools/source/misc1/strmadpt.cxx@264807 // l. 593): OSL_ASSERT(stream.is()); - std::shared_ptr s(std::make_shared()); + std::shared_ptr s(std::make_shared()); for (;;) { sal_Int32 const size = 2048; -- cgit