diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-19 17:06:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (patch) | |
tree | 72d0d1d16806f1c785a4f79ea2c0cdfe54bb8101 /sal | |
parent | 3af99e4d59d89c343965a928681a30f36b1007d2 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
aStrBuf.append( "ln(x)" );
which compiles down to the same code.
Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 4 | ||||
-rw-r--r-- | sal/qa/rtl/uri/rtl_testuri.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index 55353039144f..281ba2ce4a75 100644 --- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx +++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx @@ -694,7 +694,7 @@ namespace rtl_Bootstrap void testSection() { rtl::OUStringBuffer b; - b.appendAscii(RTL_CONSTASCII_STRINGPARAM("${")); + b.append("${"); rtl::OUString p(t_getSourcePath(TESTSHL2_INI)); for (sal_Int32 i = 0; i < p.getLength(); ++i) { if (p[i] != 'u') { @@ -702,7 +702,7 @@ namespace rtl_Bootstrap } b.append(p[i]); } - b.appendAscii(RTL_CONSTASCII_STRINGPARAM(":Other_Section:EXPAND}")); + b.append(":Other_Section:EXPAND}"); rtl::OUString t(b.makeStringAndClear()); Bootstrap(t_getSourcePath(TESTSHL2_INI)).expandMacrosFrom(t); CPPUNIT_ASSERT_MESSAGE( "section expansion", t == "$FILE" ); diff --git a/sal/qa/rtl/uri/rtl_testuri.cxx b/sal/qa/rtl/uri/rtl_testuri.cxx index 5fee79175209..ad660993fc22 100644 --- a/sal/qa/rtl/uri/rtl_testuri.cxx +++ b/sal/qa/rtl/uri/rtl_testuri.cxx @@ -226,10 +226,10 @@ void Test::test_Uri() { aText1 = rtl::OUString( "%ed%a0%80" "%f0%90%8f%bf" "%ed%bf%bf" "A"); - aBuffer.appendAscii(RTL_CONSTASCII_STRINGPARAM("%ED%A0%80")); + aBuffer.append("%ED%A0%80"); aBuffer.append(static_cast< sal_Unicode >(0xD800)); aBuffer.append(static_cast< sal_Unicode >(0xDFFF)); - aBuffer.appendAscii(RTL_CONSTASCII_STRINGPARAM("%ED%BF%BF")); + aBuffer.append("%ED%BF%BF"); aBuffer.append(static_cast< sal_Unicode >('A')); aText2 = aBuffer.makeStringAndClear(); CPPUNIT_ASSERT_MESSAGE( @@ -267,7 +267,7 @@ void Test::test_Uri() { // Check IURI handling: aText1 = rtl::OUString("%30%C3%BF"); - aBuffer.appendAscii(RTL_CONSTASCII_STRINGPARAM("%30")); + aBuffer.append("%30"); aBuffer.append(static_cast< sal_Unicode >(0x00FF)); aText2 = aBuffer.makeStringAndClear(); CPPUNIT_ASSERT_MESSAGE( |