diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-01 13:20:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-04 06:49:52 +0000 |
commit | 7855ea48309ee2ba06ee5f3d5dac27ecfc4ca4a6 (patch) | |
tree | 359d2a334303f6e32582981efef6e6e0d6b69e01 /comphelper/qa/string | |
parent | cd71034b26a404c8f9b763865ef6ebdd0adeebb7 (diff) |
remove comphelper::string::remove
and replace it with OUString/OString::replaceAll
Change-Id: I37b1c3b51251dfd9d749d6f1060c75b3a93d7f1a
Reviewed-on: https://gerrit.libreoffice.org/26850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'comphelper/qa/string')
-rw-r--r-- | comphelper/qa/string/test_string.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx index 70998759e04f..0d18ac03a73b 100644 --- a/comphelper/qa/string/test_string.cxx +++ b/comphelper/qa/string/test_string.cxx @@ -34,7 +34,6 @@ class TestString: public CppUnit::TestFixture { public: void testNatural(); - void testRemove(); void testStripStart(); void testStripEnd(); void testStrip(); @@ -47,7 +46,6 @@ public: CPPUNIT_TEST_SUITE(TestString); CPPUNIT_TEST(testNatural); - CPPUNIT_TEST(testRemove); CPPUNIT_TEST(testStripStart); CPPUNIT_TEST(testStripEnd); CPPUNIT_TEST(testStrip); @@ -278,20 +276,6 @@ void TestString::testNatural() ); } -void TestString::testRemove() -{ - OString aIn("abc"); - OString aOut; - - aOut = ::comphelper::string::remove(aIn, 'b'); - CPPUNIT_ASSERT(aOut == "ac"); - - aIn = "aaa"; - - aOut = ::comphelper::string::remove(aIn, 'a'); - CPPUNIT_ASSERT(aOut.isEmpty()); -} - void TestString::testStripStart() { OString aIn("abc"); |