From f3da84db230a10551bbdbd6cdf5e4cf669e54e2a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 7 Aug 2020 14:38:07 +0200 Subject: [PATCH] Make use of std string_view Change-Id: Ic4b330b7d046ba77e51d32d156501a18e3782985 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100313 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/logging/csvformatter.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx index 866833c41fd5..9ab747ad504d 100644 --- a/extensions/source/logging/csvformatter.cxx +++ b/extensions/source/logging/csvformatter.cxx @@ -30,6 +30,7 @@ #include #include +#include namespace logging { @@ -91,12 +92,7 @@ namespace bool needsQuoting(const OUString& str) { - static const OUString quote_trigger_chars = "\",\n\r"; - sal_Int32 len = str.getLength(); - for(sal_Int32 i=0; i