diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-04 16:24:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-04 17:54:48 +0100 |
commit | 6c905fb6430b6ec43630e826f9afd935734f4c91 (patch) | |
tree | 6fefee2c2004bab1afd12bbb6c951a6b427604cb /sc | |
parent | fcb7fe3a082c200f69f10c1d3951761a7e41d6e0 (diff) |
Improve loplugin:stringview detection of unnecessary O[U]String construction
Change-Id: Ia45119e11377e916a1e1deb5648ed9033c417d77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107228
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 4db43588af50..0dfd3e67840a 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -62,6 +62,8 @@ #include <editeng/editobj.hxx> #include <memory> +#include <string_view> + #include <osl/endian.h> // We don't want to end up with 2GB read in one line just because of malformed @@ -1542,7 +1544,7 @@ void ScImportExport::EmbeddedNullTreatment( OUString & rStr ) sal_Unicode cNull = 0; if (rStr.indexOf( cNull) >= 0) { - rStr = rStr.replaceAll( OUString( &cNull, 1), ""); + rStr = rStr.replaceAll( std::u16string_view( &cNull, 1), ""); } } |