diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-03 14:13:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-03 18:32:32 +0200 |
commit | 5a6b4b4f288621772991269180aa3a2cffff01af (patch) | |
tree | 8f29ed7593c8e54dc62a1ffcc41f3570eb984064 /svl/source/misc/strmadpt.cxx | |
parent | f0b7b388ae06d95007b69812bcf844ac9bed15c4 (diff) |
clang-tidy modernize-pass-by-value in svl
Change-Id: I184efd7aee2c3eb02399100a4a7500951255d423
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135357
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/misc/strmadpt.cxx')
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index d99aae4687ce..7a755d924986 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -31,6 +31,7 @@ #include <osl/diagnose.h> #include <svl/instrm.hxx> #include <svl/outstrm.hxx> +#include <utility> using namespace com::sun::star; @@ -313,8 +314,8 @@ void SvInputStream::SetSize(sal_uInt64) SetError(ERRCODE_IO_NOTSUPPORTED); } -SvInputStream::SvInputStream( css::uno::Reference< css::io::XInputStream > const & rTheStream): - m_xStream(rTheStream), +SvInputStream::SvInputStream( css::uno::Reference< css::io::XInputStream > xTheStream): + m_xStream(std::move(xTheStream)), m_nSeekedFrom(STREAM_SEEK_TO_END) { SetBufferSize(0); @@ -408,9 +409,8 @@ void SvOutputStream::SetSize(sal_uInt64) SetError(ERRCODE_IO_NOTSUPPORTED); } -SvOutputStream::SvOutputStream(uno::Reference< io::XOutputStream > const & - rTheStream): - m_xStream(rTheStream) +SvOutputStream::SvOutputStream(uno::Reference< io::XOutputStream > xTheStream): + m_xStream(std::move(xTheStream)) { SetBufferSize(0); } |