summaryrefslogtreecommitdiff
path: root/include/comphelper/SetFlagContextHelper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-26 09:30:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-26 10:31:44 +0200
commit24c709655e5c1ca51c6c6da7ef0cb733354f6d20 (patch)
tree7362d7aa63becf1b45b049c8d764ec42f466a091 /include/comphelper/SetFlagContextHelper.hxx
parent85e477cd08aae47cd3a69a561ca333e3e1e19a0e (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/comphelper/SetFlagContextHelper.hxx')
-rw-r--r--include/comphelper/SetFlagContextHelper.hxx8
1 files changed, 4 insertions, 4 deletions
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 <com/sun/star/uno/XCurrentContext.hpp>
#include <cppuhelper/implbase.hxx>
#include <uno/current_context.hxx>
+#include <utility>
namespace comphelper
{
@@ -20,10 +21,9 @@ namespace comphelper
class SetFlagContext final : public cppu::WeakImplHelper<css::uno::XCurrentContext>
{
public:
- explicit SetFlagContext(const OUString& sName,
- css::uno::Reference<css::uno::XCurrentContext> const& xContext)
- : m_sName(sName)
- , mxNextContext(xContext)
+ explicit SetFlagContext(OUString sName, css::uno::Reference<css::uno::XCurrentContext> xContext)
+ : m_sName(std::move(sName))
+ , mxNextContext(std::move(xContext))
{
}
SetFlagContext(const SetFlagContext&) = delete;