diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 11:34:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 11:39:22 +0100 |
commit | 83d51e244d450df0f896758966f633c90cc4c483 (patch) | |
tree | 3df8f82eeb7a0892a55b039c1bb6c84710b526ee /cppu/qa/cppumaker | |
parent | 7cb3e55bf03c49608e2b54b5d90eddd423a0f891 (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.
Change-Id: Ife614637082036dd17412f247be79233326c4f0b
Diffstat (limited to 'cppu/qa/cppumaker')
-rw-r--r-- | cppu/qa/cppumaker/test_cppumaker.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx index 8dfe84aa89d7..f6bff007b721 100644 --- a/cppu/qa/cppumaker/test_cppumaker.cxx +++ b/cppu/qa/cppumaker/test_cppumaker.cxx @@ -443,13 +443,13 @@ void Test::testBigStruct() { CPPUNIT_ASSERT_EQUAL(guard.p->m12.getLength(), static_cast< sal_Int32 >(0)); CPPUNIT_ASSERT_EQUAL( +guard.p->m13.getTypeClass(), +com::sun::star::uno::TypeClass_VOID); - CPPUNIT_ASSERT_EQUAL(guard.p->m14.hasValue(), sal_False); + CPPUNIT_ASSERT_EQUAL(guard.p->m14.hasValue(), false); CPPUNIT_ASSERT_EQUAL(guard.p->m15.getLength(), static_cast< sal_Int32 >(0)); CPPUNIT_ASSERT_EQUAL( +guard.p->m16, +test::codemaker::cppumaker::HelperEnum_ZERO); CPPUNIT_ASSERT_EQUAL(guard.p->m17.m1, sal_False); - CPPUNIT_ASSERT_EQUAL(guard.p->m17.m2.is(), sal_False); - CPPUNIT_ASSERT_EQUAL(guard.p->m18.is(), sal_False); + CPPUNIT_ASSERT_EQUAL(guard.p->m17.m2.is(), false); + CPPUNIT_ASSERT_EQUAL(guard.p->m18.is(), false); CPPUNIT_ASSERT_EQUAL(guard.p->m19, static_cast< sal_Int8 >(0)); CPPUNIT_ASSERT_EQUAL( +guard.p->m20, +test::codemaker::cppumaker::HelperEnum_ZERO); |