diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 19:49:53 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 20:03:42 +0200 |
commit | d6bc02f8c4cd0f50f0a2631ac7634dab408efc1f (patch) | |
tree | b5a12df1fcae025715633469b75ab4c9b6f6d279 /svl/qa | |
parent | 0e1c0587617e0a6e4295a13599e97cdf6d1d2ea9 (diff) |
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Diffstat (limited to 'svl/qa')
-rw-r--r-- | svl/qa/unit/test_URIHelper.cxx | 3 | ||||
-rw-r--r-- | svl/qa/unit/test_lngmisc.cxx | 14 |
2 files changed, 8 insertions, 9 deletions
diff --git a/svl/qa/unit/test_URIHelper.cxx b/svl/qa/unit/test_URIHelper.cxx index 380cbf56e645..117c2db02d3c 100644 --- a/svl/qa/unit/test_URIHelper.cxx +++ b/svl/qa/unit/test_URIHelper.cxx @@ -154,8 +154,7 @@ css::uno::Any Content::execute( css::uno::Exception, css::ucb::CommandAbortedException, css::uno::RuntimeException) { - if (!command.Name.equalsAsciiL( - RTL_CONSTASCII_STRINGPARAM("getCasePreservingURL"))) + if ( command.Name != "getCasePreservingURL" ) { throw css::uno::RuntimeException(); } diff --git a/svl/qa/unit/test_lngmisc.cxx b/svl/qa/unit/test_lngmisc.cxx index 86e871beb325..becce8988e4f 100644 --- a/svl/qa/unit/test_lngmisc.cxx +++ b/svl/qa/unit/test_lngmisc.cxx @@ -78,7 +78,7 @@ namespace // Note that '-' isn't a hyphen to RemoveHyphens. bModified = linguistic::RemoveHyphens(str2); CPPUNIT_ASSERT(!bModified); - CPPUNIT_ASSERT(str2.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("a-b--c---"))); + CPPUNIT_ASSERT( str2 == "a-b--c---" ); bModified = linguistic::RemoveHyphens(str3); CPPUNIT_ASSERT(bModified); @@ -86,7 +86,7 @@ namespace bModified = linguistic::RemoveHyphens(str4); CPPUNIT_ASSERT(!bModified); - CPPUNIT_ASSERT(str4.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("asdf"))); + CPPUNIT_ASSERT( str4 == "asdf" ); } void LngMiscTest::testRemoveControlChars() @@ -109,15 +109,15 @@ namespace bModified = linguistic::RemoveControlChars(str2); CPPUNIT_ASSERT(!bModified); - CPPUNIT_ASSERT(str2.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("asdf"))); + CPPUNIT_ASSERT( str2 == "asdf" ); bModified = linguistic::RemoveControlChars(str3); CPPUNIT_ASSERT(bModified); - CPPUNIT_ASSERT(str3.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("asdfasdf"))); + CPPUNIT_ASSERT( str3 == "asdfasdf" ); bModified = linguistic::RemoveControlChars(str4); CPPUNIT_ASSERT(bModified); - CPPUNIT_ASSERT(str4.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(" "))); + CPPUNIT_ASSERT( str4 == " " ); } void LngMiscTest::testReplaceControlChars() @@ -140,11 +140,11 @@ namespace bModified = linguistic::ReplaceControlChars(str2); CPPUNIT_ASSERT(!bModified); - CPPUNIT_ASSERT(str2.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("asdf"))); + CPPUNIT_ASSERT( str2 == "asdf" ); bModified = linguistic::ReplaceControlChars(str3); CPPUNIT_ASSERT(bModified); - CPPUNIT_ASSERT(str3.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("asdf asdf"))); + CPPUNIT_ASSERT( str3 == "asdf asdf" ); bModified = linguistic::ReplaceControlChars(str4); CPPUNIT_ASSERT(bModified); |