summaryrefslogtreecommitdiff
path: root/writerperfect/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-24 20:35:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-25 12:17:39 +0200
commitb26a3db534cd30bee596670e99897ee5ce907adf (patch)
tree0b875722f000d88460b506a34d7a72befe6501be /writerperfect/qa
parent502d73cda8fa1f482634bb6435fd1440757fdad9 (diff)
loplugin:returnconstval in writerperfect
Change-Id: I86e9977438c69c19adafc3743e618321a05e3923 Reviewed-on: https://gerrit.libreoffice.org/78064 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect/qa')
-rw-r--r--writerperfect/qa/unit/WPXSvStreamTest.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/writerperfect/qa/unit/WPXSvStreamTest.cxx b/writerperfect/qa/unit/WPXSvStreamTest.cxx
index ef246afb7725..b13fc91e0e7c 100644
--- a/writerperfect/qa/unit/WPXSvStreamTest.cxx
+++ b/writerperfect/qa/unit/WPXSvStreamTest.cxx
@@ -83,7 +83,7 @@ shared_ptr<RVNGInputStream> lcl_createStream()
return pInputStream;
}
-const shared_ptr<RVNGInputStream> lcl_createStreamForURL(const OUString& rURL)
+shared_ptr<RVNGInputStream> lcl_createStreamForURL(const OUString& rURL)
{
using uno::Reference;
using uno::UNO_QUERY_THROW;
@@ -97,8 +97,7 @@ const shared_ptr<RVNGInputStream> lcl_createStreamForURL(const OUString& rURL)
const Reference<io::XInputStream> xInputStream(xFileAccess->openFileRead(rURL),
css::uno::UNO_SET_THROW);
- const shared_ptr<RVNGInputStream> pInput(new WPXSvInputStream(xInputStream));
- return pInput;
+ return shared_ptr<RVNGInputStream>(new WPXSvInputStream(xInputStream));
}
void lcl_testSubStreams(const shared_ptr<RVNGInputStream>& pInput)