diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 10:12:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 15:38:12 +0200 |
commit | 8c15ccc2671d93b06c00730d03b441f3466984d4 (patch) | |
tree | 55e7a129b2a431555009e1f4446dbbc3a0c5ce20 /include/sfx2/linksrc.hxx | |
parent | a5d3238104a46f933584cc2a896b00bae82bf4ec (diff) |
clang-tidy modernize-pass-by-value in sfx2
Change-Id: I7984f0b52809091511dc01005fdbfeafd521b4bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137048
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/linksrc.hxx')
-rw-r--r-- | include/sfx2/linksrc.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sfx2/linksrc.hxx b/include/sfx2/linksrc.hxx index 4f12d72f4a14..bac48b18589e 100644 --- a/include/sfx2/linksrc.hxx +++ b/include/sfx2/linksrc.hxx @@ -25,6 +25,7 @@ #include <tools/ref.hxx> #include <com/sun/star/uno/Reference.hxx> #include <memory> +#include <utility> namespace com::sun::star::uno { @@ -94,8 +95,8 @@ public: struct StreamToLoadFrom{ StreamToLoadFrom( - const css::uno::Reference<css::io::XInputStream>& xInputStream, bool bIsReadOnly ) - :m_xInputStreamToLoadFrom(xInputStream), + css::uno::Reference<css::io::XInputStream> xInputStream, bool bIsReadOnly ) + :m_xInputStreamToLoadFrom(std::move(xInputStream)), m_bIsReadOnly(bIsReadOnly) { } |