From 3a88b513fd90f4793b6de7a7412fa33369542f40 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 7 Apr 2022 10:46:26 +0200 Subject: loplugin:stringviewparam convert methods using trim for which we add a new o3tl::trim method Change-Id: I9d37b6264eea106aa2f3502bd24b8cccf7850938 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132658 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/qa/extras/chart2dump/chart2dump.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chart2') diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx b/chart2/qa/extras/chart2dump/chart2dump.cxx index bae904d4faf3..7418b80a8d5a 100644 --- a/chart2/qa/extras/chart2dump/chart2dump.cxx +++ b/chart2/qa/extras/chart2dump/chart2dump.cxx @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -157,12 +158,12 @@ protected: return OUString(sTemp.data(), sTemp.length(), RTL_TEXTENCODING_UTF8); } - void writeActual(const OUString& sActualValue, const OUString& sCheck) + void writeActual(std::u16string_view sActualValue, const OUString& sCheck) { assert(m_bDumpMode); assert(m_aDumpFile.is_open()); m_aDumpFile << "// " << sCheck << "\n"; // Add check string to make dump file readable - m_aDumpFile << sActualValue.trim() << "\n"; // Write out the checked value, will be used as reference later + m_aDumpFile << OUString(sActualValue) << "\n"; // Write out the checked value, will be used as reference later } void readNote(std::u16string_view sNote) -- cgit