diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-19 11:39:07 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-19 10:48:30 +0000 |
commit | 39d45390f4fab1e9e85f211d74ed2c08fda5b652 (patch) | |
tree | ac4b224a66a18429cd4722a61ee3d401f8e9951c /cppu/qa | |
parent | 5c908d0431ee975c1ee7aa245af83b9eb7f95da6 (diff) |
removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms
Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b
Reviewed-on: https://gerrit.libreoffice.org/2835
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'cppu/qa')
-rw-r--r-- | cppu/qa/test_any.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/cppu/qa/test_any.cxx b/cppu/qa/test_any.cxx index aadc1b35338c..31c26fa4ee9c 100644 --- a/cppu/qa/test_any.cxx +++ b/cppu/qa/test_any.cxx @@ -291,7 +291,7 @@ void Test::testVoid() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -389,7 +389,7 @@ void Test::testBoolean() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -488,7 +488,7 @@ void Test::testByte() { } } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -587,7 +587,7 @@ void Test::testShort() { } } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -688,7 +688,7 @@ void Test::testUnsignedShort() { } } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -783,7 +783,7 @@ void Test::testLong() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -878,7 +878,7 @@ void Test::testUnsignedLong() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -973,7 +973,7 @@ void Test::testHyper() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1068,7 +1068,7 @@ void Test::testUnsignedHyper() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1163,7 +1163,7 @@ void Test::testFloat() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1258,7 +1258,7 @@ void Test::testDouble() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1358,7 +1358,7 @@ void Test::testChar() { } } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1453,7 +1453,7 @@ void Test::testString() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", (a >>= b) && b == "1" ); } { @@ -1548,7 +1548,7 @@ void Test::testType() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1644,7 +1644,7 @@ void Test::testSequence() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1745,7 +1745,7 @@ void Test::testEnum() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1844,7 +1844,7 @@ void Test::testStruct() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -1964,7 +1964,7 @@ void Test::testException() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -2080,7 +2080,7 @@ void Test::testInterface() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { @@ -2194,7 +2194,7 @@ void Test::testNull() { CPPUNIT_ASSERT_MESSAGE("sal_Unicode", !(a >>= b) && b == '2'); } { - rtl::OUString b(RTL_CONSTASCII_USTRINGPARAM("2")); + rtl::OUString b("2"); CPPUNIT_ASSERT_MESSAGE( "rtl::OUString", !(a >>= b) && b == "2" ); } { |