From 8c15ccc2671d93b06c00730d03b441f3466984d4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Jul 2022 10:12:44 +0200 Subject: 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 --- sfx2/source/appl/linksrc.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sfx2/source/appl/linksrc.cxx') 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 #include +#include #include #include #include @@ -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 ) {} -- cgit