From 81002bc718edad94613b20c2480719979b443b99 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 2 Aug 2022 13:42:33 +0200 Subject: clang-tidy modernize-pass-by-value in oox Change-Id: Ia553a24693f2ffc0f580c9869b82f0d01a1a0ffb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137693 Tested-by: Jenkins Reviewed-by: Noel Grandin --- oox/source/ole/vbamodule.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'oox/source/ole/vbamodule.cxx') diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 207a76e83bb3..6f1682df070b 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -32,6 +32,7 @@ #include #include #include +#include namespace oox::ole { @@ -44,10 +45,10 @@ using ::com::sun::star::awt::KeyEvent; VbaModule::VbaModule( const Reference< XComponentContext >& rxContext, const Reference< frame::XModel >& rxDocModel, - const OUString& rName, rtl_TextEncoding eTextEnc, bool bExecutable ) : + OUString aName, rtl_TextEncoding eTextEnc, bool bExecutable ) : mxContext( rxContext ), mxDocModel( rxDocModel ), - maName( rName ), + maName(std::move( aName )), meTextEnc( eTextEnc ), mnType( script::ModuleType::UNKNOWN ), mnOffset( SAL_MAX_UINT32 ), -- cgit