summaryrefslogtreecommitdiff
path: root/include/xmloff/NamedBoolPropertyHdl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 10:45:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 15:59:38 +0200
commitca2a4a4b1c839c14832043e714297c30087b4b6d (patch)
tree8229dee461d27537ddb828e6693c27d7a2439c5e /include/xmloff/NamedBoolPropertyHdl.hxx
parent2f93eb49db71c8cbaffbd022cb2b654d56920bda (diff)
clang-tidy modernize-pass-by-value in xmloff
Change-Id: Ica07e393763343d0f5caaad6a89fa3378f6ad344 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136995 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff/NamedBoolPropertyHdl.hxx')
-rw-r--r--include/xmloff/NamedBoolPropertyHdl.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xmloff/NamedBoolPropertyHdl.hxx b/include/xmloff/NamedBoolPropertyHdl.hxx
index b5fba6722a93..73b6a6156175 100644
--- a/include/xmloff/NamedBoolPropertyHdl.hxx
+++ b/include/xmloff/NamedBoolPropertyHdl.hxx
@@ -20,6 +20,7 @@
#ifndef INCLUDED_XMLOFF_NAMEDBOOLPROPERTYHDL_HXX
#define INCLUDED_XMLOFF_NAMEDBOOLPROPERTYHDL_HXX
+#include <utility>
#include <xmloff/xmlprhdl.hxx>
#include <xmloff/xmltoken.hxx>
@@ -33,7 +34,7 @@ private:
const OUString maFalseStr;
public:
- XMLNamedBoolPropertyHdl( const OUString& rTrueStr, const OUString& rFalseStr ) : maTrueStr( rTrueStr ), maFalseStr( rFalseStr ) {}
+ XMLNamedBoolPropertyHdl( OUString sTrueStr, OUString sFalseStr ) : maTrueStr(std::move( sTrueStr )), maFalseStr(std::move( sFalseStr )) {}
XMLNamedBoolPropertyHdl(
::xmloff::token::XMLTokenEnum eTrue,