summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/rtl/strings/test_oustring_concat.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_concat.cxx b/sal/qa/rtl/strings/test_oustring_concat.cxx
index 977229691702..3bc69e17cfe8 100644
--- a/sal/qa/rtl/strings/test_oustring_concat.cxx
+++ b/sal/qa/rtl/strings/test_oustring_concat.cxx
@@ -75,8 +75,14 @@ void test::oustring::StringConcat::checkConcat()
void test::oustring::StringConcat::checkConcatAsciiL()
{
- CPPUNIT_ASSERT_EQUAL(OUString("foo"), OUString("foo") += "");
- CPPUNIT_ASSERT_EQUAL(OUString("foobar"), OUString("foo") += "bar");
+ {
+ OUString s("foo");
+ CPPUNIT_ASSERT_EQUAL(OUString("foo"), s += "");
+ }
+ {
+ OUString s("foo");
+ CPPUNIT_ASSERT_EQUAL(OUString("foobar"), s += "bar");
+ }
}
void test::oustring::StringConcat::checkEnsureCapacity()