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/weakref.hxx | |
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/weakref.hxx')
-rw-r--r-- | include/cppuhelper/weakref.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cppuhelper/weakref.hxx b/include/cppuhelper/weakref.hxx index d9a77287b364..849196ab1074 100644 --- a/include/cppuhelper/weakref.hxx +++ b/include/cppuhelper/weakref.hxx @@ -83,7 +83,7 @@ public: @param rObj another weak ref @return true, if both weak refs reference to the same object. */ - inline sal_Bool SAL_CALL operator == ( const WeakReferenceHelper & rObj ) const SAL_THROW(()) + inline bool SAL_CALL operator == ( const WeakReferenceHelper & rObj ) const SAL_THROW(()) { return (get() == rObj.get()); } /** Gets a hard reference to the object. |