From 6c905fb6430b6ec43630e826f9afd935734f4c91 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 4 Dec 2020 16:24:56 +0100 Subject: 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 --- sc/source/ui/docshell/impex.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sc') 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 #include +#include + #include // 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), ""); } } -- cgit