From e4ff847fe0796420ba8023b70cad8589f5f19e9f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 9 Apr 2022 09:55:12 +0200 Subject: loplugin:stringview check for getToken and trim since we now have o3tl versions of those that work on string_view. Also improve those o3tl functions to support both string_view and u16string_view Change-Id: Iacab2996becec62aa78a5597c52d983bb784749a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132755 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerperfect/qa/unit/EPUBExportTest.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'writerperfect') diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx index c1769607605a..15e70733dda5 100644 --- a/writerperfect/qa/unit/EPUBExportTest.cxx +++ b/writerperfect/qa/unit/EPUBExportTest.cxx @@ -29,6 +29,7 @@ #include #include #include +#include using namespace ::com::sun::star; @@ -150,7 +151,7 @@ OUString EPUBExportTest::getCss(std::map>& rCss, OUString aKeyValue = rKeyValue.trim(); std::vector aTokens = comphelper::string::split(aKeyValue, ':'); CPPUNIT_ASSERT_EQUAL(static_cast(2), aTokens.size()); - if (aTokens[0].trim() == rKey) + if (o3tl::trim(aTokens[0]) == rKey) { aRet = aTokens[1].trim(); if (aRet.endsWith(";")) -- cgit