summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-20 13:04:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-20 13:05:35 +0100
commit77c87c18697e19cb4606717af0e4b0e5ab2139bc (patch)
treedc6345e65a30c924e7c84487a7da7dfbf10a06eb /sal/qa
parent2d9ce9191da681e4fd9f1d08933ca5117c56601b (diff)
Deprecate confusing rtl::OUString::compareToAscii(asciiStr, maxLength)
Change-Id: I3a41036ec03cdaefea94b19dbedf59e5a5e37dc8
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/rtl/strings/test_oustring_compare.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_compare.cxx b/sal/qa/rtl/strings/test_oustring_compare.cxx
index e3ad8dd9d4bf..7f56546df914 100644
--- a/sal/qa/rtl/strings/test_oustring_compare.cxx
+++ b/sal/qa/rtl/strings/test_oustring_compare.cxx
@@ -30,13 +30,10 @@ class Compare: public CppUnit::TestFixture
private:
void equalsIgnoreAsciiCaseAscii();
- void compareToAscii();
-
void compareToIgnoreAsciiCase();
CPPUNIT_TEST_SUITE(Compare);
CPPUNIT_TEST(equalsIgnoreAsciiCaseAscii);
-CPPUNIT_TEST(compareToAscii);
CPPUNIT_TEST(compareToIgnoreAsciiCase);
CPPUNIT_TEST_SUITE_END();
};
@@ -63,16 +60,6 @@ void test::oustring::Compare::equalsIgnoreAsciiCaseAscii()
equalsIgnoreAsciiCaseAscii("abcd"));
}
-void test::oustring::Compare::compareToAscii()
-{
- // The different overloads of compareToAscii exhibit potentially confusing
- // behavior:
- rtl::OUString abc("abc");
- CPPUNIT_ASSERT(abc.compareToAscii("a") > 0);
- CPPUNIT_ASSERT_EQUAL(
- sal_Int32(0), abc.compareToAscii(RTL_CONSTASCII_STRINGPARAM("a")));
-}
-
void test::oustring::Compare::compareToIgnoreAsciiCase()
{
CPPUNIT_ASSERT_EQUAL(