diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 12:20:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-04 15:29:54 +0100 |
commit | c34e8bd71384326184baac7dea31f7ddf9bae6bc (patch) | |
tree | 0914b24023030781b3a74a768be9df4d2873b4b9 /svgio/inc | |
parent | a1cdde17aa27902ee162d5b40860f05c592c4de8 (diff) |
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svgio/inc')
-rw-r--r-- | svgio/inc/svgcharacternode.hxx | 6 | ||||
-rw-r--r-- | svgio/inc/svgtitledescnode.hxx | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/svgio/inc/svgcharacternode.hxx b/svgio/inc/svgcharacternode.hxx index 988c30001df9..46d7ec995b18 100644 --- a/svgio/inc/svgcharacternode.hxx +++ b/svgio/inc/svgcharacternode.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_SVGIO_INC_SVGCHARACTERNODE_HXX #define INCLUDED_SVGIO_INC_SVGCHARACTERNODE_HXX +#include <sal/config.h> + +#include <string_view> + #include "svgnode.hxx" namespace drawinglayer::primitive2d { class TextSimplePortionPrimitive2D; } @@ -148,7 +152,7 @@ namespace svgio::svgreader void decomposeText(drawinglayer::primitive2d::Primitive2DContainer& rTarget, SvgTextPosition& rSvgTextPosition) const; void whiteSpaceHandling(); void addGap(); - void concatenate(const OUString& rText); + void concatenate(std::u16string_view rText); /// Text content const OUString& getText() const { return maText; } diff --git a/svgio/inc/svgtitledescnode.hxx b/svgio/inc/svgtitledescnode.hxx index 0c8eae4b94f6..50eb5bc73ee2 100644 --- a/svgio/inc/svgtitledescnode.hxx +++ b/svgio/inc/svgtitledescnode.hxx @@ -19,6 +19,10 @@ #ifndef INCLUDED_SVGIO_INC_SVGTITLEDESCNODE_HXX #define INCLUDED_SVGIO_INC_SVGTITLEDESCNODE_HXX +#include <sal/config.h> + +#include <string_view> + #include "svgnode.hxx" @@ -38,7 +42,7 @@ namespace svgio::svgreader virtual ~SvgTitleDescNode() override; /// add new chars - void concatenate(const OUString& rChars); + void concatenate(std::u16string_view rChars); /// x content, set if found in current context const OUString& getText() const { return maText; } |