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/pipe_decl.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/pipe_decl.hxx')
-rw-r--r-- | include/osl/pipe_decl.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/osl/pipe_decl.hxx b/include/osl/pipe_decl.hxx index 0fb8c4429cd4..4ec681712646 100644 --- a/include/osl/pipe_decl.hxx +++ b/include/osl/pipe_decl.hxx @@ -71,7 +71,7 @@ public: */ inline ~Pipe(); - inline sal_Bool SAL_CALL is() const; + inline bool SAL_CALL is() const; /** Creates an insecure pipe that is accessible for all users with the given attributes. @@ -81,7 +81,7 @@ public: @param rSec @return True if socket was successfully created. */ - inline sal_Bool create( const ::rtl::OUString & strName, + inline bool create( const ::rtl::OUString & strName, oslPipeOptions Options, const Security &rSec ); /** Creates a secure that access rights depend on the umask settings @@ -92,7 +92,7 @@ public: @param Options @return True if socket was successfully created. */ - inline sal_Bool create( const ::rtl::OUString & strName, oslPipeOptions Options = osl_Pipe_OPEN ); + inline bool create( const ::rtl::OUString & strName, oslPipeOptions Options = osl_Pipe_OPEN ); /** releases the underlying handle */ @@ -111,9 +111,9 @@ public: /** Checks if the pipe is valid. @return True if the object represents a valid pipe. */ - inline sal_Bool SAL_CALL isValid() const; + inline bool SAL_CALL isValid() const; - inline sal_Bool SAL_CALL operator==( const Pipe& rPipe ) const; + inline bool SAL_CALL operator==( const Pipe& rPipe ) const; /** Closes the pipe. */ |