summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/strings
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-23 18:43:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-23 18:43:53 +0100
commite3133ae2371b6e2d4b47daa6a3487ea4f2753315 (patch)
treef9a000ee6542fb470733bfed28199092a36c26c5 /sal/qa/rtl/strings
parent14f4e2fa22a0a2576808bab08edaf2e12f761cd8 (diff)
Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Missing overloads of insert() for bool have been added to OStringBuffer and OUStringBuffer (which required dropping one !VALID_CONVERSION check that would now pick that overload, but would be flagged by compilerplugins/clang/pointertobool.cxx). Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9
Diffstat (limited to 'sal/qa/rtl/strings')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
index 902cc2a0bc0b..192eeb5ae63b 100644
--- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
+++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
@@ -168,7 +168,6 @@ void test::oustring::StringLiterals::checkBuffer()
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 )));
}
}} // namespace