From 24c709655e5c1ca51c6c6da7ef0cb733354f6d20 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 May 2022 09:30:35 +0200 Subject: clang-tidy modernize-pass-by-value in comphelper Change-Id: I29074d801eaef57f160ce14b943b21831b327ecf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134979 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/comphelper/SetFlagContextHelper.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/comphelper/SetFlagContextHelper.hxx') diff --git a/include/comphelper/SetFlagContextHelper.hxx b/include/comphelper/SetFlagContextHelper.hxx index 1f1e2743cea9..b1b15eabba26 100644 --- a/include/comphelper/SetFlagContextHelper.hxx +++ b/include/comphelper/SetFlagContextHelper.hxx @@ -13,6 +13,7 @@ #include #include #include +#include namespace comphelper { @@ -20,10 +21,9 @@ namespace comphelper class SetFlagContext final : public cppu::WeakImplHelper { public: - explicit SetFlagContext(const OUString& sName, - css::uno::Reference const& xContext) - : m_sName(sName) - , mxNextContext(xContext) + explicit SetFlagContext(OUString sName, css::uno::Reference xContext) + : m_sName(std::move(sName)) + , mxNextContext(std::move(xContext)) { } SetFlagContext(const SetFlagContext&) = delete; -- cgit