From 64937ff98a970050b0d5d89e3a4734d93e13ad00 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 10 Oct 2021 20:23:48 +0200 Subject: loplugin:moveparam in unotools Change-Id: Idd014c93e2e85d2ffc7a2535a9c65cffc8a9d403 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123348 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/config/securityoptions.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unotools/source') diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index cd41f92a0eac..e3cab9d1a557 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -104,12 +104,12 @@ std::vector< OUString > GetSecureURLs() return aRet; } -void SetSecureURLs( const std::vector< OUString >& urlList ) +void SetSecureURLs( std::vector< OUString >&& urlList ) { // DBG_ASSERT(!officecfg::SecureURL::isReadOnly(), "SvtSecurityOptions_Impl::SetSecureURLs()\nYou tried to write on a readonly value!\n"); // if (officecfg::SecureURL::isReadOnly()) // return; - std::vector< OUString > lURLs( urlList ); + std::vector< OUString > lURLs( std::move(urlList) ); SvtPathOptions aOpt; std::transform(lURLs.begin(), lURLs.end(), lURLs.begin(), [&aOpt](const OUString& rUrl) -> OUString { return aOpt.UseVariable( rUrl ); }); -- cgit