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 /xmloff/source | |
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 'xmloff/source')
-rw-r--r-- | xmloff/source/text/txtparai.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index fb480dd136e0..c74fbeb0fcd7 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -20,6 +20,7 @@ #include <xmloff/unointerfacetouniqueidentifiermapper.hxx> #include <memory> +#include <string_view> #include <vector> #include <rtl/ustring.hxx> @@ -524,7 +525,7 @@ public: sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override; void SetTextStyleName( const OUString& s ) { m_sTextStyleName = s; } - void AppendText( const OUString& s ) { m_sText += s; } + void AppendText( std::u16string_view s ) { m_sText += s; } }; class XMLImpRubyTextContext_Impl : public SvXMLImportContext |