summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/linksrc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 10:12:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 15:38:12 +0200
commit8c15ccc2671d93b06c00730d03b441f3466984d4 (patch)
tree55e7a129b2a431555009e1f4446dbbc3a0c5ce20 /sfx2/source/appl/linksrc.cxx
parenta5d3238104a46f933584cc2a896b00bae82bf4ec (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 'sfx2/source/appl/linksrc.cxx')
-rw-r--r--sfx2/source/appl/linksrc.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx
index fb9ec11431c4..131992c51040 100644
--- a/sfx2/source/appl/linksrc.cxx
+++ b/sfx2/source/appl/linksrc.cxx
@@ -22,6 +22,7 @@
#include <sfx2/lnkbase.hxx>
#include <com/sun/star/uno/Any.hxx>
+#include <utility>
#include <vcl/timer.hxx>
#include <memory>
#include <vector>
@@ -77,9 +78,9 @@ struct SvLinkSource_Entry_Impl
sal_uInt16 nAdviseModes;
bool bIsDataSink;
- SvLinkSource_Entry_Impl( SvBaseLink* pLink, const OUString& rMimeType,
+ SvLinkSource_Entry_Impl( SvBaseLink* pLink, OUString aMimeType,
sal_uInt16 nAdvMode )
- : xSink( pLink ), aDataMimeType( rMimeType ),
+ : xSink( pLink ), aDataMimeType(std::move( aMimeType )),
nAdviseModes( nAdvMode ), bIsDataSink( true )
{}