[Libreoffice-commits] .: sal/qa

Joseph Powers jpowers at kemper.freedesktop.org
Mon Feb 14 20:24:40 PST 2011


 sal/qa/rtl/oustringbuffer/test_oustringbuffer_tostring.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit df1bd6ddd462265ab6701eb564982d6e4997a87a
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Mon Feb 14 20:24:34 2011 -0800

    Fix: call of overloaded 'append(char)' is ambiguous

diff --git a/sal/qa/rtl/oustringbuffer/test_oustringbuffer_tostring.cxx b/sal/qa/rtl/oustringbuffer/test_oustringbuffer_tostring.cxx
index 31aecac..df38ce6 100644
--- a/sal/qa/rtl/oustringbuffer/test_oustringbuffer_tostring.cxx
+++ b/sal/qa/rtl/oustringbuffer/test_oustringbuffer_tostring.cxx
@@ -55,7 +55,7 @@ void test::oustringbuffer::ToString::testToString() {
     rtl::OUString str = sb.toString();
     CPPUNIT_ASSERT(str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("test string")));
     // returned OUString must be independent from sb
-    sb.append('a');
+    sb.append( (sal_Unicode)'a' );
     CPPUNIT_ASSERT(str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("test string")));
     sb.setLength(0);
     CPPUNIT_ASSERT(str.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("test string")));


More information about the Libreoffice-commits mailing list