summaryrefslogtreecommitdiff
path: root/extensions/source/logging/csvformatter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/logging/csvformatter.cxx')
-rw-r--r--extensions/source/logging/csvformatter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx
index 57f4d3cf0545..0d0ec6479c5e 100644
--- a/extensions/source/logging/csvformatter.cxx
+++ b/extensions/source/logging/csvformatter.cxx
@@ -90,9 +90,9 @@ namespace
const sal_Unicode comma_char = ',';
constexpr OUStringLiteral dos_newline = u"\r\n";
- bool needsQuoting(const OUString& str)
+ bool needsQuoting(std::u16string_view str)
{
- return std::u16string_view(str).find_first_of(u"\",\n\r") != std::u16string_view::npos;
+ return str.find_first_of(u"\",\n\r") != std::u16string_view::npos;
};
void appendEncodedString(OUStringBuffer& buf, const OUString& str)