From eeefb8c440b514cefdc4e82cc06843da9eabeb13 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 24 Apr 2018 15:04:47 +0200 Subject: make UcbStreamHelper return SvStream by std::unique_ptr Change-Id: I408f9193680ea73c61fcfb2bd1e860152219702c --- vcl/source/graphic/GraphicLoader.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') 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 pInputStream; - pInputStream.reset(utl::UcbStreamHelper::CreateStream(rURL, StreamMode::READ)); + std::unique_ptr pInputStream + = utl::UcbStreamHelper::CreateStream(rURL, StreamMode::READ); if (pInputStream) { -- cgit