diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 15:05:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 15:07:41 +0200 |
commit | 743f22045c4ec08c46c259fc0ba240194a391457 (patch) | |
tree | faed42bb31c4ee767619eb5c3ebd4dec0a41fa03 /sw/qa | |
parent | 0c6ebe5d225d6a655f078977455cec6d0a3afa6e (diff) |
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:
find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtftok/rtftok.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/qa/extras/rtftok/rtftok.cxx b/sw/qa/extras/rtftok/rtftok.cxx index 926796799f82..a8908d5ad001 100644 --- a/sw/qa/extras/rtftok/rtftok.cxx +++ b/sw/qa/extras/rtftok/rtftok.cxx @@ -177,7 +177,7 @@ void RtfModelTest::testFdo45553() { uno::Reference<text::XTextRange> xRange(xRangeEnum->nextElement(), uno::UNO_QUERY); OUString aStr = xRange->getString(); - if (aStr.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("space-before"))) + if ( aStr == "space-before" ) { sal_Int32 nMargin = 0; uno::Reference<beans::XPropertySet> xPropertySet(xRange, uno::UNO_QUERY); @@ -185,7 +185,7 @@ void RtfModelTest::testFdo45553() aValue >>= nMargin; CPPUNIT_ASSERT_EQUAL(sal_Int32(TWIP_TO_MM100(120)), nMargin); } - else if (aStr.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("space-after"))) + else if ( aStr == "space-after" ) { sal_Int32 nMargin = 0; uno::Reference<beans::XPropertySet> xPropertySet(xRange, uno::UNO_QUERY); @@ -325,13 +325,13 @@ void RtfModelTest::testFdo46662() { const beans::PropertyValue& rProp = aProps[i]; - if (rProp.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ParentNumbering"))) + if ( rProp.Name == "ParentNumbering" ) { sal_Int16 nValue; rProp.Value >>= nValue; CPPUNIT_ASSERT_EQUAL(sal_Int16(2), nValue); } - else if (rProp.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Suffix"))) + else if ( rProp.Name == "Suffix" ) { rtl::OUString sValue; rProp.Value >>= sValue; |