summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-24 15:04:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-25 10:14:02 +0200
commiteeefb8c440b514cefdc4e82cc06843da9eabeb13 (patch)
treee7ec81b12b9e5538281da13f1776fceeacc437db /vcl
parentbbf134a2b77909706492cbc41952210f89c0df71 (diff)
make UcbStreamHelper return SvStream by std::unique_ptr
Change-Id: I408f9193680ea73c61fcfb2bd1e860152219702c
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/graphic/GraphicLoader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/graphic/GraphicLoader.cxx b/vcl/source/graphic/GraphicLoader.cxx
index 9c453acf0864..d7f66c0fde7f 100644
--- a/vcl/source/graphic/GraphicLoader.cxx
+++ b/vcl/source/graphic/GraphicLoader.cxx
@@ -34,8 +34,8 @@ Graphic loadFromURL(OUString const& rURL, sal_Int16 nExtWidth, sal_Int16 nExtHei
Graphic aGraphic;
- std::unique_ptr<SvStream> pInputStream;
- pInputStream.reset(utl::UcbStreamHelper::CreateStream(rURL, StreamMode::READ));
+ std::unique_ptr<SvStream> pInputStream
+ = utl::UcbStreamHelper::CreateStream(rURL, StreamMode::READ);
if (pInputStream)
{