diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-29 11:05:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-29 11:08:32 +0100 |
commit | 9038a3ef7c10aff868636715924cb9f97d648d80 (patch) | |
tree | eb3ae7f1cb997bf908d6e350a357fcb05f5d36c5 /include/cppuhelper/interfacecontainer.h | |
parent | 612dac063a144506b44f4ab2afa2c5cdf9d882b4 (diff) |
cppuhelper: 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: Ibed63566266328f84432ad2019e58265d9d30fc3
Diffstat (limited to 'include/cppuhelper/interfacecontainer.h')
-rw-r--r-- | include/cppuhelper/interfacecontainer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cppuhelper/interfacecontainer.h b/include/cppuhelper/interfacecontainer.h index 860529db3f8a..dd3f6a9fc73d 100644 --- a/include/cppuhelper/interfacecontainer.h +++ b/include/cppuhelper/interfacecontainer.h @@ -79,11 +79,11 @@ public: */ ~OInterfaceIteratorHelper() SAL_THROW(()); - /** Return sal_True, if there are more elements in the iterator. */ - sal_Bool SAL_CALL hasMoreElements() const SAL_THROW(()) + /** Return true, if there are more elements in the iterator. */ + bool SAL_CALL hasMoreElements() const SAL_THROW(()) { return nRemain != 0; } /** Return the next element of the iterator. Calling this method if - hasMoreElements() has returned sal_False, is an error. Cast the + hasMoreElements() has returned false, is an error. Cast the returned pointer to the */ ::com::sun::star::uno::XInterface * SAL_CALL next() SAL_THROW(()); |