diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-11 11:04:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-12 08:04:16 +0200 |
commit | 24865e2d57a32aab7212b1a283f9b30215900dda (patch) | |
tree | 9fce0db252a9a8b9959b46ce7cad326be6255329 /sw/source/uibase/dochdl/gloshdl.cxx | |
parent | 7786bafdb8951aa3f0acda801ddb3704c81d00d8 (diff) |
clang-tidy modernize-pass-by-value in sw
Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl/gloshdl.cxx')
-rw-r--r-- | sw/source/uibase/dochdl/gloshdl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx index 3846bdb3e1c5..c276f59ac6ce 100644 --- a/sw/source/uibase/dochdl/gloshdl.cxx +++ b/sw/source/uibase/dochdl/gloshdl.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <utility> #include <vcl/errinf.hxx> #include <vcl/weld.hxx> #include <svl/macitem.hxx> @@ -58,8 +59,8 @@ struct TextBlockInfo_Impl OUString sTitle; OUString sLongName; OUString sGroupName; - TextBlockInfo_Impl(OUString const& rTitle, OUString const& rLongName, OUString const& rGroupName) - : sTitle(rTitle), sLongName(rLongName), sGroupName(rGroupName) {} + TextBlockInfo_Impl(OUString aTitle, OUString aLongName, OUString aGroupName) + : sTitle(std::move(aTitle)), sLongName(std::move(aLongName)), sGroupName(std::move(aGroupName)) {} }; } |