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 /editeng | |
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 'editeng')
-rw-r--r-- | editeng/inc/editdoc.hxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx index ff2681e3ca5e..9b35cfeaa028 100644 --- a/editeng/inc/editdoc.hxx +++ b/editeng/inc/editdoc.hxx @@ -31,6 +31,7 @@ #include <o3tl/typed_flags_set.hxx> #include <memory> +#include <string_view> #include <vector> class ImpEditEngine; @@ -287,7 +288,7 @@ public: void SetChar(sal_Int32 nPos, sal_Unicode c); void Insert(const OUString& rStr, sal_Int32 nPos); - void Append(const OUString& rStr); + void Append(std::u16string_view rStr); void Erase(sal_Int32 nPos); void Erase(sal_Int32 nPos, sal_Int32 nCount); OUString Copy(sal_Int32 nPos) const; diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 11d18adae056..e1a9c91e3ee5 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1724,7 +1724,7 @@ void ContentNode::Insert(const OUString& rStr, sal_Int32 nPos) maString = maString.replaceAt(nPos, 0, rStr); } -void ContentNode::Append(const OUString& rStr) +void ContentNode::Append(std::u16string_view rStr) { maString += rStr; } |