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/osl/profile.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/osl/profile.hxx')
-rw-r--r-- | include/osl/profile.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/osl/profile.hxx b/include/osl/profile.hxx index bd4794e04951..e2ae14529689 100644 --- a/include/osl/profile.hxx +++ b/include/osl/profile.hxx @@ -60,7 +60,7 @@ namespace osl { } - sal_Bool flush() + bool flush() { return osl_flushProfile(profile); } @@ -78,7 +78,7 @@ namespace osl { } - sal_Bool readBool( const rtl::OString& rSection, const rtl::OString& rEntry, sal_Bool bDefault ) + bool readBool( const rtl::OString& rSection, const rtl::OString& rEntry, bool bDefault ) { return osl_readProfileBool( profile, rSection.getStr(), rEntry.getStr(), bDefault ); } @@ -102,18 +102,18 @@ namespace osl { return nRet; } - sal_Bool writeString(const rtl::OString& rSection, const rtl::OString& rEntry, + bool writeString(const rtl::OString& rSection, const rtl::OString& rEntry, const rtl::OString& rString) { return osl_writeProfileString(profile, rSection.getStr(), rEntry.getStr(), rString.getStr()); } - sal_Bool writeBool(const rtl::OString& rSection, const rtl::OString& rEntry, sal_Bool Value) + bool writeBool(const rtl::OString& rSection, const rtl::OString& rEntry, bool Value) { return osl_writeProfileBool(profile, rSection.getStr(), rEntry.getStr(), Value); } - sal_Bool writeIdent(const rtl::OString& rSection, const rtl::OString& rEntry, + bool writeIdent(const rtl::OString& rSection, const rtl::OString& rEntry, sal_uInt32 nFirstId, const std::list< rtl::OString >& rStrings, sal_uInt32 nValue) { @@ -127,7 +127,7 @@ namespace osl { ++it; } pStrings[ nItems ] = NULL; - sal_Bool bRet = + bool bRet = osl_writeProfileIdent(profile, rSection.getStr(), rEntry.getStr(), nFirstId, pStrings, nValue ); delete pStrings; return bRet; @@ -138,7 +138,7 @@ namespace osl { @param rEntry Name of the entry to remove. @return False if section or entry could not be found. */ - sal_Bool removeEntry(const rtl::OString& rSection, const rtl::OString& rEntry) + bool removeEntry(const rtl::OString& rSection, const rtl::OString& rEntry) { return osl_removeProfileEntry(profile, rSection.getStr(), rEntry.getStr()); } |