diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-30 14:59:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-30 19:16:45 +0200 |
commit | 7b87afa899be289306c709d35eb1d32c0b73b1ed (patch) | |
tree | 7faf699a2e22c770ccac90cc38262a284946d9c7 /include/unotools/streamhelper.hxx | |
parent | f3df14cc4343ce65608436acfa67b2ccfb68115d (diff) |
clang-tidy modernize-pass-by-value in unotools
Change-Id: Ifa67ab7198f5d3b06171869f57703acdaa959f7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135128
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools/streamhelper.hxx')
-rw-r--r-- | include/unotools/streamhelper.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/unotools/streamhelper.hxx b/include/unotools/streamhelper.hxx index 5d0a3792855b..a727869bfea6 100644 --- a/include/unotools/streamhelper.hxx +++ b/include/unotools/streamhelper.hxx @@ -26,6 +26,7 @@ #include <cppuhelper/implbase.hxx> #include <tools/stream.hxx> #include <mutex> +#include <utility> namespace utl { @@ -41,9 +42,9 @@ class UNOTOOLS_DLLPUBLIC OInputStreamHelper final : public cppu::WeakImplHelper< sal_Int32 m_nAvailable; // this is typically the chunk(buffer) size public: - OInputStreamHelper(const SvLockBytesRef& _xLockBytes, + OInputStreamHelper(SvLockBytesRef _xLockBytes, sal_uInt32 _nAvailable) - :m_xLockBytes(_xLockBytes) + :m_xLockBytes(std::move(_xLockBytes)) ,m_nActPos(0) ,m_nAvailable(_nAvailable){} |