diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-20 14:23:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-01-07 09:43:37 +0200 |
commit | 82625bb98e256b83351328d3bf2a14e3dd244eef (patch) | |
tree | 9b661850ae5df9ea27fcac063cfe61862046c8d1 /sal/qa | |
parent | 347af397cafa97cfa7d5027f83fff784ca04a397 (diff) |
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like:
buf.append( static_cast<sal_Unicode>('!') );
to:
buf.append( '!' );
Change-Id: Iacb03a61de65a895540940953b49620677b3d051
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl/uri/rtl_testuri.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index f3cf9de7328b..f80777b9dc80 100644 --- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx +++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx @@ -698,7 +698,7 @@ namespace rtl_Bootstrap rtl::OUString p(t_getSourcePath(TESTSHL2_INI)); for (sal_Int32 i = 0; i < p.getLength(); ++i) { if (p[i] != 'u') { - b.append(static_cast< sal_Unicode >('\\')); + b.append('\\'); } b.append(p[i]); } diff --git a/sal/qa/rtl/uri/rtl_testuri.cxx b/sal/qa/rtl/uri/rtl_testuri.cxx index ad660993fc22..63a53b10922e 100644 --- a/sal/qa/rtl/uri/rtl_testuri.cxx +++ b/sal/qa/rtl/uri/rtl_testuri.cxx @@ -201,7 +201,7 @@ void Test::test_Uri() { aBuffer.append(static_cast< sal_Unicode >(0xD800)); // %F0%90%8F%BF aBuffer.append(static_cast< sal_Unicode >(0xDFFF)); aBuffer.append(static_cast< sal_Unicode >(0xDFFF)); // %ED%BF%BF - aBuffer.append(static_cast< sal_Unicode >('A')); // A + aBuffer.append('A'); // A aText1 = aBuffer.makeStringAndClear(); aText2 = rtl::OUString( "%ED%A0%80" "%F0%90%8F%BF" "%ED%BF%BF" "A"); @@ -230,7 +230,7 @@ void Test::test_Uri() { aBuffer.append(static_cast< sal_Unicode >(0xD800)); aBuffer.append(static_cast< sal_Unicode >(0xDFFF)); aBuffer.append("%ED%BF%BF"); - aBuffer.append(static_cast< sal_Unicode >('A')); + aBuffer.append('A'); aText2 = aBuffer.makeStringAndClear(); CPPUNIT_ASSERT_MESSAGE( "failure 14", |