diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 12:17:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 15:54:48 +0100 |
commit | fd910cfbda17dd6cded63128fa4dbbc931d2f04d (patch) | |
tree | 415374ea6f6486df7cba5fa5507f5508b5d9b60e /include/typelib | |
parent | fff58c3379ef03fb8dec51b7b64a053481d48727 (diff) |
typelib: 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: Ie011e52f6cb022fd1d24f6a872037f3023060247
Diffstat (limited to 'include/typelib')
-rw-r--r-- | include/typelib/typedescription.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/typelib/typedescription.hxx b/include/typelib/typedescription.hxx index 0db15ffc4977..9ac0db9e063e 100644 --- a/include/typelib/typedescription.hxx +++ b/include/typelib/typedescription.hxx @@ -111,13 +111,13 @@ public: @param pTypeDescr another type description @return true, if both type descriptions are equal, false otherwise */ - inline sal_Bool SAL_CALL equals( const typelib_TypeDescription * pTypeDescr ) const SAL_THROW(()); + inline bool SAL_CALL equals( const typelib_TypeDescription * pTypeDescr ) const SAL_THROW(()); /** Tests whether two type descriptions are equal. @param rTypeDescr another type description @return true, if both type descriptions are equal, false otherwise */ - inline sal_Bool SAL_CALL equals( const TypeDescription & rTypeDescr ) const SAL_THROW(()) + inline bool SAL_CALL equals( const TypeDescription & rTypeDescr ) const SAL_THROW(()) { return equals( rTypeDescr._pTypeDescr ); } /** Makes stored type description complete. @@ -134,7 +134,7 @@ public: @return true, if a type description is set, false otherwise */ - inline sal_Bool SAL_CALL is() const SAL_THROW(()) + inline bool SAL_CALL is() const SAL_THROW(()) { return (_pTypeDescr != 0); } }; //__________________________________________________________________________________________________ @@ -194,7 +194,7 @@ inline TypeDescription & TypeDescription::operator = ( typelib_TypeDescription * return *this; } //__________________________________________________________________________________________________ -inline sal_Bool TypeDescription::equals( const typelib_TypeDescription * pTypeDescr ) const SAL_THROW(()) +inline bool TypeDescription::equals( const typelib_TypeDescription * pTypeDescr ) const SAL_THROW(()) { return (_pTypeDescr && pTypeDescr && typelib_typedescription_equals( _pTypeDescr, pTypeDescr )); |