diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-11 11:21:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-11 13:55:14 +0100 |
commit | 70519a43e0d89a6b5d89859a6851f8c757c6b0c7 (patch) | |
tree | bc1f4a6b6510e3bff75e9dc54eb71e2fa6cfc3c8 /writerfilter/source | |
parent | tdf#120993 update Add fields icon in colibre (diff) | |
download | core-70519a43e0d89a6b5d89859a6851f8c757c6b0c7.tar.gz core-70519a43e0d89a6b5d89859a6851f8c757c6b0c7.zip |
Replace OUStringBuffer::appendCopy with append(std::u16string_view)
...which is more general
Change-Id: I94f28f8eda887120cf5f143b4549e0339b60e6a7
Reviewed-on: https://gerrit.libreoffice.org/66155
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 9ed80c64d34e..fca398968320 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -9,6 +9,7 @@ #include "rtfdocumentimpl.hxx" #include <memory> +#include <string_view> #include <com/sun/star/embed/XEmbeddedObject.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/io/WrongFormatException.hpp> @@ -2236,7 +2237,7 @@ RTFError RTFDocumentImpl::popState() - aState.aLevelNumbers.size())); } else - aBuf.appendCopy(aOrig, i, 1); + aBuf.append(std::u16string_view(aOrig).substr(i, 1)); } pValue->setString(aBuf.makeStringAndClear()); |