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/bootstrap.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/bootstrap.hxx')
-rw-r--r-- | include/rtl/bootstrap.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/rtl/bootstrap.hxx b/include/rtl/bootstrap.hxx index b73c47c4fc10..b46d0bcb77a1 100644 --- a/include/rtl/bootstrap.hxx +++ b/include/rtl/bootstrap.hxx @@ -40,10 +40,10 @@ namespace rtl @param sName name of the bootstrap value. case insensitive. @param outValue (out parameter). On success contains the value, otherwise an empty string. - @return sal_False, if no value could be retrieved, otherwise sal_True + @return false, if no value could be retrieved, otherwise true @see rtl_bootstrap_get() */ - static inline sal_Bool get( + static inline bool get( const ::rtl::OUString &sName, ::rtl::OUString &outValue ); @@ -94,7 +94,7 @@ namespace rtl @see rtl_bootstrap_get_from_handle() */ - inline sal_Bool getFrom(const ::rtl::OUString &sName, + inline bool getFrom(const ::rtl::OUString &sName, ::rtl::OUString &outValue) const; /** Retrieves a bootstrap argument. @@ -156,7 +156,7 @@ namespace rtl rtl_bootstrap_setIniFileName( sFile.pData ); } - inline sal_Bool Bootstrap::get( const ::rtl::OUString &sName, + inline bool Bootstrap::get( const ::rtl::OUString &sName, ::rtl::OUString & outValue ) { return rtl_bootstrap_get( sName.pData , &(outValue.pData) , 0 ); @@ -195,7 +195,7 @@ namespace rtl } - inline sal_Bool Bootstrap::getFrom(const ::rtl::OUString &sName, + inline bool Bootstrap::getFrom(const ::rtl::OUString &sName, ::rtl::OUString &outValue) const { return rtl_bootstrap_get_from_handle(_handle, sName.pData, &outValue.pData, 0); |