diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-27 09:48:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-27 16:06:51 +0200 |
commit | 448ca8c2729b5a0194906e9c9dae95504d5212b9 (patch) | |
tree | 8e7ada01f1b874b1e1b6da9a348aa36bc222503a /svgio/source/svgreader/svgcharacternode.cxx | |
parent | 4178d7b2212a9e4ec35b3225c28e50f64132efcb (diff) |
clang-tidy modernize-pass-by-value in svgio
Change-Id: I48283b202a0d5b9560a587daa4ebbf86367875ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136453
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/source/svgreader/svgcharacternode.cxx')
-rw-r--r-- | svgio/source/svgreader/svgcharacternode.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index bdd0c4f3471b..3efda44ee4a9 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -24,6 +24,7 @@ #include <drawinglayer/primitive2d/textlayoutdevice.hxx> #include <drawinglayer/primitive2d/textbreakuphelper.hxx> #include <drawinglayer/primitive2d/textdecoratedprimitive2d.hxx> +#include <utility> #include <osl/diagnose.h> using namespace drawinglayer::primitive2d; @@ -183,9 +184,9 @@ namespace svgio::svgreader SvgCharacterNode::SvgCharacterNode( SvgDocument& rDocument, SvgNode* pParent, - const OUString& rText) + OUString aText) : SvgNode(SVGToken::Character, rDocument, pParent), - maText(rText) + maText(std::move(aText)) { } |