diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2023-11-29 19:38:37 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2023-11-29 23:23:45 +0100 |
commit | 79e8833305b9cedce4ebbcabc573866e22040b72 (patch) | |
tree | 7d7552dd2d824d247b9abcefdbe7c9f7d315c5cf /comphelper | |
parent | 02fd70fb1c9578351919d82100047c03be97934c (diff) |
Extended loplugin:ostr: comphelper
Change-Id: I43baf9248f607b13720da4295eb2827b3f58b3f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160126
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/qa/string/test_string.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx index c6529949daee..5d25a64da887 100644 --- a/comphelper/qa/string/test_string.cxx +++ b/comphelper/qa/string/test_string.cxx @@ -97,11 +97,11 @@ void TestString::testStripStart() aOut = ::comphelper::string::stripStart(aIn, 'a'); CPPUNIT_ASSERT_EQUAL("bc"_ostr, aOut); - aIn = "aaa"; + aIn = "aaa"_ostr; aOut = ::comphelper::string::stripStart(aIn, 'a'); CPPUNIT_ASSERT(aOut.isEmpty()); - aIn = "aba"; + aIn = "aba"_ostr; aOut = ::comphelper::string::stripStart(aIn, 'a'); CPPUNIT_ASSERT_EQUAL("ba"_ostr, aOut); } @@ -117,11 +117,11 @@ void TestString::testStripEnd() aOut = ::comphelper::string::stripEnd(aIn, 'c'); CPPUNIT_ASSERT_EQUAL("ab"_ostr, aOut); - aIn = "aaa"; + aIn = "aaa"_ostr; aOut = ::comphelper::string::stripEnd(aIn, 'a'); CPPUNIT_ASSERT(aOut.isEmpty()); - aIn = "aba"; + aIn = "aba"_ostr; aOut = ::comphelper::string::stripEnd(aIn, 'a'); CPPUNIT_ASSERT_EQUAL("ab"_ostr, aOut); } @@ -137,11 +137,11 @@ void TestString::testStrip() aOut = ::comphelper::string::strip(aIn, 'c'); CPPUNIT_ASSERT_EQUAL("ab"_ostr, aOut); - aIn = "aaa"; + aIn = "aaa"_ostr; aOut = ::comphelper::string::strip(aIn, 'a'); CPPUNIT_ASSERT(aOut.isEmpty()); - aIn = "aba"; + aIn = "aba"_ostr; aOut = ::comphelper::string::strip(aIn, 'a'); CPPUNIT_ASSERT_EQUAL("b"_ostr, aOut); } |