diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-17 10:50:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-13 19:11:49 +0200 |
commit | 1743d74e87745a26043642a06dc8a57b1af29740 (patch) | |
tree | 86354c464ed2e51bf940b58333844c0ad0670d01 /hwpfilter | |
parent | a0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (diff) |
clang-tidy modernize-pass-by-value in various
Change-Id: Ie091b22bd77d4e1fbff46545bc86c12f1dbafcfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138171
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/attributes.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hwpfilter/source/attributes.cxx b/hwpfilter/source/attributes.cxx index 602165ba0c32..3b24d45b0351 100644 --- a/hwpfilter/source/attributes.cxx +++ b/hwpfilter/source/attributes.cxx @@ -19,6 +19,7 @@ #include <assert.h> +#include <utility> #include <vector> #include "attributes.hxx" @@ -26,8 +27,8 @@ namespace { struct TagAttribute { - TagAttribute( const OUString &rName, const OUString &rType , const OUString &rValue ) - : sName(rName), sType(rType), sValue(rValue) + TagAttribute( OUString aName, OUString aType, OUString aValue ) + : sName(std::move(aName)), sType(std::move(aType)), sValue(std::move(aValue)) { } |