summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-30 14:52:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-30 16:12:34 +0200
commit9b902cfa55e4ca77d6ee63dc8ec8c8e45cd39bb0 (patch)
tree42580bfa053a6c41392cc9307bd164c70a8c5bfc /include
parent2c921f24c761247639bb5ce344d6738568861564 (diff)
clang-tidy modernize-pass-by-value in sot
Change-Id: I1ff31ae1291a82630ae32185077e369bbdfd3a0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135127 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/sot/stg.hxx2
-rw-r--r--include/sot/storinfo.hxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx
index 1cd16ac32e89..72003f08fd49 100644
--- a/include/sot/stg.hxx
+++ b/include/sot/stg.hxx
@@ -154,7 +154,7 @@ class UNLESS_MERGELIBS(SOT_DLLPUBLIC) Storage final : public BaseStorage, public
Storage( StgIo*, StgDirEntry*, StreamMode );
virtual ~Storage() override;
public:
- Storage( const OUString &, StreamMode, bool bDirect );
+ Storage( OUString, StreamMode, bool bDirect );
Storage( SvStream& rStrm, bool bDirect );
Storage( UCBStorageStream& rStrm, bool bDirect );
diff --git a/include/sot/storinfo.hxx b/include/sot/storinfo.hxx
index 8b9866549c07..c1283cffe1a8 100644
--- a/include/sot/storinfo.hxx
+++ b/include/sot/storinfo.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SOT_STORINFO_HXX
#include <rtl/ustring.hxx>
+#include <utility>
#include <vector>
#include <sot/sotdllapi.h>
#include <sot/formats.hxx>
@@ -38,8 +39,8 @@ class SvStorageInfo
public:
SvStorageInfo(const StgDirEntry&);
- SvStorageInfo(const OUString& rName, sal_uInt64 nSz, bool bIsStorage)
- : aName(rName)
+ SvStorageInfo(OUString _aName, sal_uInt64 nSz, bool bIsStorage)
+ : aName(std::move(_aName))
, nSize(nSz)
, bStream(!bIsStorage)
, bStorage(bIsStorage)