summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-01 08:58:08 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-01 08:58:08 +0100
commit0222bdb752fef6363c5118efdf30b59817f4445e (patch)
tree737a9c178f8494bb8cfe56f8b2670559a83e45ed /sal
parent10cecb81dbd897aaea5188c9249770877ac20771 (diff)
but back a unittest check about invalid char[] -> OUString(Buffer) conversion
It's invalid, so the additional ambiguity here doesn't matter, but I'd still prefer to check that it remains invalid. Change-Id: Ie05d393ad7f51738383bb98b911938506abd64fc
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
index 09b55c6169b2..8d8254342334 100644
--- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
+++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
@@ -181,6 +181,8 @@ void test::oustring::StringLiterals::checkBuffer()
buf.insert( 3, "baz" );
CPPUNIT_ASSERT_EQUAL( rtl::OUString( "foobazbar" ), buf.toString());
char d[] = "d";
+ CPPUNIT_ASSERT( !VALID_CONVERSION( buf.append( rtl::OUString( d ))));
+ CPPUNIT_ASSERT( !VALID_CONVERSION( buf.append( rtl::OUStringBuffer( d ))));
CPPUNIT_ASSERT( !VALID_CONVERSION( buf.insert( 0, d )));
}