diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 10:45:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 10:47:33 +0100 |
commit | e344d2ac328332aeb0e326636a0a2cd61b812b6a (patch) | |
tree | 5563c5639c13810850253186cfd91aaf94488a57 /include/rtl/ref.hxx | |
parent | 65191cda819ee8f4d14f6cdf12568c35e46b5c66 (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: Ibf43c5ded609b489952e1cc666cac1e72ffa2386
Diffstat (limited to 'include/rtl/ref.hxx')
-rw-r--r-- | include/rtl/ref.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/rtl/ref.hxx b/include/rtl/ref.hxx index 2b93af231a22..cccbc0105ff6 100644 --- a/include/rtl/ref.hxx +++ b/include/rtl/ref.hxx @@ -176,7 +176,7 @@ public: /** Returns True if the handle does point to a valid body. */ - inline sal_Bool SAL_CALL is() const + inline bool SAL_CALL is() const { return (m_pBody != 0); } @@ -184,7 +184,7 @@ public: /** Returns True if this points to pBody. */ - inline sal_Bool SAL_CALL operator== (const reference_type * pBody) const + inline bool SAL_CALL operator== (const reference_type * pBody) const { return (m_pBody == pBody); } @@ -192,7 +192,7 @@ public: /** Returns True if handle points to the same body. */ - inline sal_Bool + inline bool SAL_CALL operator== (const Reference<reference_type> & handle) const { return (m_pBody == handle.m_pBody); @@ -201,7 +201,7 @@ public: /** Needed to place References into STL collection. */ - inline sal_Bool + inline bool SAL_CALL operator!= (const Reference<reference_type> & handle) const { return (m_pBody != handle.m_pBody); @@ -210,7 +210,7 @@ public: /** Needed to place References into STL collection. */ - inline sal_Bool + inline bool SAL_CALL operator< (const Reference<reference_type> & handle) const { return (m_pBody < handle.m_pBody); @@ -219,7 +219,7 @@ public: /** Needed to place References into STL collection. */ - inline sal_Bool + inline bool SAL_CALL operator> (const Reference<reference_type> & handle) const { return (m_pBody > handle.m_pBody); |