From c7428c607c021f361973f0b1fd9e0dcaf45fa932 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 18 Apr 2021 21:12:13 +0200 Subject: use more string_view in OString API some parts of the OString seem to have fallen behind its more popular sibling OUString. Change-Id: Ie6d64c3005b2df5da49ba79d0c38282dd5057a23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114252 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sal/qa/rtl/strings/test_ostring.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sal') diff --git a/sal/qa/rtl/strings/test_ostring.cxx b/sal/qa/rtl/strings/test_ostring.cxx index 0d0d07be70ea..b4fb201cafa3 100644 --- a/sal/qa/rtl/strings/test_ostring.cxx +++ b/sal/qa/rtl/strings/test_ostring.cxx @@ -32,12 +32,12 @@ private: void Test::testStartsWithIgnoreAsciiCase() { { OString r; - CPPUNIT_ASSERT(OString().startsWithIgnoreAsciiCase(OString(), &r)); + CPPUNIT_ASSERT(OString().startsWithIgnoreAsciiCase(std::string_view(), &r)); CPPUNIT_ASSERT(r.isEmpty()); } { OString r; - CPPUNIT_ASSERT(OString("foo").startsWithIgnoreAsciiCase(OString(), &r)); + CPPUNIT_ASSERT(OString("foo").startsWithIgnoreAsciiCase(std::string_view(), &r)); CPPUNIT_ASSERT_EQUAL(OString("foo"), r); } { -- cgit