diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-03 16:59:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-04 09:54:19 +0200 |
commit | a7dde8db81624c4f31c93b8611a4636d662f548e (patch) | |
tree | 611a2360e3676e545cd217f7a98077e67c589283 /vcl | |
parent | 736cebb414af587e7ac82f1326b06ce4022badf4 (diff) |
can make good use of fact its a SvMemorystream
Change-Id: Iad581202fab8bace4a730bf2c318718bcc065e9d
Reviewed-on: https://gerrit.libreoffice.org/53811
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/image/ImplImageTree.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<SvStream> wrapStream(css::uno::Reference< css::io::XInputStream > const & stream) +std::shared_ptr<SvMemoryStream> 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<SvStream> s(std::make_shared<SvMemoryStream>()); + std::shared_ptr<SvMemoryStream> s(std::make_shared<SvMemoryStream>()); for (;;) { sal_Int32 const size = 2048; |