[Libreoffice-commits] core.git: 2 commits - cppu/source extensions/source framework/inc include/osl include/rtl jvmfwk/plugins jvmfwk/source sal/qa

Stephan Bergmann sbergman at redhat.com
Mon Jan 27 01:47:59 PST 2014


 cppu/source/threadpool/threadpool.hxx               |    2 
 extensions/source/update/check/download.hxx         |    2 
 extensions/source/update/check/updatecheck.cxx      |    4 -
 framework/inc/threadhelp/gate.hxx                   |    6 -
 include/osl/conditn.hxx                             |    6 -
 include/osl/file.hxx                                |   52 +++++++--------
 include/osl/module.hxx                              |   16 ++--
 include/osl/mutex.hxx                               |   12 +--
 include/osl/pipe.hxx                                |    8 +-
 include/osl/pipe_decl.hxx                           |   10 +-
 include/osl/profile.hxx                             |   14 ++--
 include/osl/security.hxx                            |   14 ++--
 include/osl/security_decl.hxx                       |   14 ++--
 include/osl/socket.hxx                              |   32 ++++-----
 include/osl/socket_decl.hxx                         |   68 ++++++++++----------
 include/osl/thread.hxx                              |   14 ++--
 include/rtl/bootstrap.hxx                           |   10 +-
 include/rtl/byteseq.h                               |    4 -
 include/rtl/byteseq.hxx                             |    4 -
 include/rtl/ref.hxx                                 |   12 +--
 jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx |    2 
 jvmfwk/source/framework.cxx                         |    8 +-
 jvmfwk/source/fwkbase.cxx                           |   18 ++---
 sal/qa/ByteSequence/ByteSequence.cxx                |   24 +++----
 sal/qa/osl/file/osl_File.cxx                        |   36 +++++-----
 sal/qa/osl/module/osl_Module.cxx                    |    2 
 sal/qa/osl/mutex/osl_Mutex.cxx                      |   20 ++---
 sal/qa/osl/process/osl_Thread.cxx                   |    6 -
 sal/qa/osl/security/osl_Security.cxx                |    6 -
 29 files changed, 213 insertions(+), 213 deletions(-)

New commits:
commit e344d2ac328332aeb0e326636a0a2cd61b812b6a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jan 27 10:45:55 2014 +0100

    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

diff --git a/include/osl/conditn.hxx b/include/osl/conditn.hxx
index 337d651..fd0dfdf 100644
--- a/include/osl/conditn.hxx
+++ b/include/osl/conditn.hxx
@@ -62,14 +62,14 @@ namespace osl
             osl_destroyCondition(condition);
         }
 
-        /* Release all waiting threads, check returns sal_True.
+        /* Release all waiting threads, check returns true.
          */
         void set()
         {
             osl_setCondition(condition);
         }
 
-        /* Reset condition to false: wait() will block, check() returns sal_False.
+        /* Reset condition to false: wait() will block, check() returns false.
          */
         void reset() {
             osl_resetCondition(condition);
@@ -84,7 +84,7 @@ namespace osl
 
         /** Checks if the condition is set without blocking.
          */
-        sal_Bool check()
+        bool check()
         {
             return osl_checkCondition(condition);
         }
diff --git a/include/osl/file.hxx b/include/osl/file.hxx
index 7b50b53..7bff7e6 100644
--- a/include/osl/file.hxx
+++ b/include/osl/file.hxx
@@ -453,10 +453,10 @@ public:
         @param nMask
         Set of flags for the fields to check.
 
-        @return sal_True if all fields are valid else sal_False.
+        @return true if all fields are valid else false.
     */
 
-    inline sal_Bool isValid( sal_uInt32 nMask ) const
+    inline bool isValid( sal_uInt32 nMask ) const
     {
         return ( nMask & _aInfo.uValidFields ) == nMask;
     }
@@ -464,10 +464,10 @@ public:
     /** Check the remote flag.
 
         @return
-        sal_True if Attributes are valid and the volume is remote else sal_False.
+        true if Attributes are valid and the volume is remote else false.
     */
 
-    inline sal_Bool getRemoteFlag() const
+    inline bool getRemoteFlag() const
     {
         return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_Remote);
     }
@@ -475,10 +475,10 @@ public:
     /** Check the removeable flag.
 
         @return
-        sal_True if attributes are valid and the volume is removable else sal_False.
+        true if attributes are valid and the volume is removable else false.
     */
 
-    inline sal_Bool getRemoveableFlag() const
+    inline bool getRemoveableFlag() const
     {
         return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_Removeable);
     }
@@ -486,10 +486,10 @@ public:
     /** Check the compact disc flag.
 
         @return
-        sal_True if attributes are valid and the volume is a CDROM else sal_False.
+        true if attributes are valid and the volume is a CDROM else false.
     */
 
-    inline sal_Bool getCompactDiscFlag() const
+    inline bool getCompactDiscFlag() const
     {
         return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_CompactDisc);
     }
@@ -497,10 +497,10 @@ public:
     /** Check the floppy disc flag.
 
         @return
-        sal_True if attributes are valid and the volume is a floppy disk else sal_False.
+        true if attributes are valid and the volume is a floppy disk else false.
     */
 
-    inline sal_Bool getFloppyDiskFlag() const
+    inline bool getFloppyDiskFlag() const
     {
         return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_FloppyDisk);
     }
@@ -508,10 +508,10 @@ public:
     /** Check the fixed disk flag.
 
         @return
-        sal_True if attributes are valid and the volume is a fixed disk else sal_False.
+        true if attributes are valid and the volume is a fixed disk else false.
     */
 
-    inline sal_Bool getFixedDiskFlag() const
+    inline bool getFixedDiskFlag() const
     {
         return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_FixedDisk);
     }
@@ -519,10 +519,10 @@ public:
     /** Check the RAM disk flag.
 
         @return
-        sal_True if attributes are valid and the volume is a RAM disk else sal_False.
+        true if attributes are valid and the volume is a RAM disk else false.
     */
 
-    inline sal_Bool getRAMDiskFlag() const
+    inline bool getRAMDiskFlag() const
     {
         return 0 != (_aInfo.uAttributes & osl_Volume_Attribute_RAMDisk);
     }
@@ -705,10 +705,10 @@ public:
         Set of flags for the fields to check.
 
         @return
-        sal_True if all fields are valid else sal_False.
+        true if all fields are valid else false.
     */
 
-    inline sal_Bool isValid( sal_uInt32 nMask ) const
+    inline bool isValid( sal_uInt32 nMask ) const
     {
         return ( nMask & _aStatus.uValidFields ) == nMask;
     }
@@ -736,7 +736,7 @@ public:
         @see getFileType
         @since LibreOffice 3.6
     */
-    inline sal_Bool isDirectory() const
+    inline bool isDirectory() const
     {
         return ( getFileType() == Directory || getFileType() == Volume );
     }
@@ -751,7 +751,7 @@ public:
         @see isLink
         @since LibreOffice 3.6
     */
-    inline sal_Bool isRegular() const
+    inline bool isRegular() const
     {
         return ( getFileType() == Regular );
     }
@@ -764,7 +764,7 @@ public:
         @see getFileType
         @since LibreOffice 3.6
     */
-    inline sal_Bool isLink() const
+    inline bool isLink() const
     {
         return ( getFileType() == Link );
     }
@@ -1487,10 +1487,10 @@ public:
     /** Check for validity of this instance.
 
         @return
-        sal_True if object is valid directory item else sal_False.
+        true if object is valid directory item else false.
      */
 
-    inline sal_Bool is()
+    inline bool is()
     {
         return _pData != NULL;
     }
@@ -1586,14 +1586,14 @@ public:
     A directory handle to compare with the underlying object's item
 
     @return
-    sal_True: if the items point to an identical resource<br>
-    sal_False: if the items point to a different resource, or a fatal error occured<br>
+    true: if the items point to an identical resource<br>
+    false: if the items point to a different resource, or a fatal error occured<br>
 
     @see osl_getDirectoryItem()
 
     @since LibreOffice 3.6
 */
-    inline sal_Bool isIdenticalTo( const DirectoryItem &pOther )
+    inline bool isIdenticalTo( const DirectoryItem &pOther )
     {
         return osl_identicalDirectoryItem( _pData, pOther._pData );
     }
@@ -1717,13 +1717,13 @@ public:
         Query if directory is open and so item enumeration is valid.
 
         @return
-        sal_True if the directory is open else sal_False.
+        true if the directory is open else false.
 
         @see open()
         @see close()
     */
 
-    inline sal_Bool isOpen() { return _pData != NULL; }
+    inline bool isOpen() { return _pData != NULL; }
 
     /** Close a directory.
 
diff --git a/include/osl/module.hxx b/include/osl/module.hxx
index e78ff88..058a1d1 100644
--- a/include/osl/module.hxx
+++ b/include/osl/module.hxx
@@ -32,7 +32,7 @@ class Module
     Module& operator = ( const Module&);
 
 public:
-    static sal_Bool getUrlFromAddress(void * addr, ::rtl::OUString & libraryUrl) {
+    static bool getUrlFromAddress(void * addr, ::rtl::OUString & libraryUrl) {
         return osl_getModuleURLFromAddress(addr, &libraryUrl.pData);
     }
 
@@ -49,15 +49,15 @@ public:
 
         @return
         <dl>
-        <dt>sal_True</dt>
+        <dt>true</dt>
         <dd>on success</dd>
-        <dt>sal_False</dt>
+        <dt>false</dt>
         <dd>can not get the URL from the specified function address or the parameter is invalid.</dd>
         </dl>
 
         @see getUrlFromAddress
     */
-    static sal_Bool getUrlFromAddress( oslGenericFunction addr, ::rtl::OUString & libraryUrl){
+    static bool getUrlFromAddress( oslGenericFunction addr, ::rtl::OUString & libraryUrl){
         return osl_getModuleURLFromFunctionAddress( addr, &libraryUrl.pData );
     }
 
@@ -81,7 +81,7 @@ public:
 
 #ifndef DISABLE_DYNLOADING
 
-    sal_Bool SAL_CALL load( const ::rtl::OUString& strModuleName,
+    bool SAL_CALL load( const ::rtl::OUString& strModuleName,
         sal_Int32 nRtldMode = SAL_LOADMODULE_DEFAULT)
     {
         unload();
@@ -90,7 +90,7 @@ public:
     }
 
     /// @since UDK 3.2.8
-    sal_Bool SAL_CALL loadRelative(
+    bool SAL_CALL loadRelative(
         ::oslGenericFunction baseModule, ::rtl::OUString const & relativePath,
         ::sal_Int32 mode = SAL_LOADMODULE_DEFAULT)
     {
@@ -100,7 +100,7 @@ public:
     }
 
     /// @since LibreOffice 3.5
-    sal_Bool SAL_CALL loadRelative(
+    bool SAL_CALL loadRelative(
         oslGenericFunction baseModule, char const * relativePath,
         sal_Int32 mode = SAL_LOADMODULE_DEFAULT)
     {
@@ -120,7 +120,7 @@ public:
 
 #endif
 
-    sal_Bool SAL_CALL is() const
+    bool SAL_CALL is() const
     {
            return m_Module != NULL;
     }
diff --git a/include/osl/mutex.hxx b/include/osl/mutex.hxx
index 2aff64b..17d57e8 100644
--- a/include/osl/mutex.hxx
+++ b/include/osl/mutex.hxx
@@ -50,28 +50,28 @@ namespace osl
         }
 
         /** Acquire the mutex, block if already acquired by another thread.
-            @return sal_False if system-call fails.
+            @return false if system-call fails.
             @see ::osl_acquireMutex()
         */
-        sal_Bool acquire()
+        bool acquire()
         {
             return osl_acquireMutex(mutex);
         }
 
         /** Try to acquire the mutex without blocking.
-            @return sal_False if it could not be acquired.
+            @return false if it could not be acquired.
             @see ::osl_tryToAcquireMutex()
         */
-        sal_Bool tryToAcquire()
+        bool tryToAcquire()
         {
             return osl_tryToAcquireMutex(mutex);
         }
 
         /** Release the mutex.
-            @return sal_False if system-call fails.
+            @return false if system-call fails.
             @see ::osl_releaseMutex()
         */
-        sal_Bool release()
+        bool release()
         {
             return osl_releaseMutex(mutex);
         }
diff --git a/include/osl/pipe.hxx b/include/osl/pipe.hxx
index e1bb0d3..fe4766f 100644
--- a/include/osl/pipe.hxx
+++ b/include/osl/pipe.hxx
@@ -67,7 +67,7 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Pipe::create( const ::rtl::OUString & strName,
+    inline bool Pipe::create( const ::rtl::OUString & strName,
                                   oslPipeOptions Options, const Security &rSec )
     {
         *this = Pipe( strName, Options, rSec );
@@ -75,7 +75,7 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Pipe::create( const ::rtl::OUString & strName, oslPipeOptions Options  )
+    inline bool Pipe::create( const ::rtl::OUString & strName, oslPipeOptions Options  )
     {
         *this = Pipe( strName, Options );
         return is();
@@ -99,13 +99,13 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool SAL_CALL Pipe::is() const
+    inline bool SAL_CALL Pipe::is() const
     {
         return m_handle != 0;
     }
 
     //______________________________________________________________________________
-    inline sal_Bool SAL_CALL Pipe::operator==( const Pipe& rPipe ) const
+    inline bool SAL_CALL Pipe::operator==( const Pipe& rPipe ) const
     {
         return m_handle == rPipe.m_handle;
     }
diff --git a/include/osl/pipe_decl.hxx b/include/osl/pipe_decl.hxx
index 0fb8c44..4ec6817 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.
     */
diff --git a/include/osl/profile.hxx b/include/osl/profile.hxx
index bd4794e..e2ae145 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());
         }
diff --git a/include/osl/security.hxx b/include/osl/security.hxx
index 46e27ec..6f7b248 100644
--- a/include/osl/security.hxx
+++ b/include/osl/security.hxx
@@ -36,7 +36,7 @@ inline Security::~Security()
     osl_freeSecurityHandle(m_handle);
 }
 
-inline sal_Bool Security::logonUser(const rtl::OUString& strName,
+inline bool Security::logonUser(const rtl::OUString& strName,
                                     const rtl::OUString& strPasswd)
 {
     osl_freeSecurityHandle(m_handle);
@@ -47,7 +47,7 @@ inline sal_Bool Security::logonUser(const rtl::OUString& strName,
             == osl_Security_E_None);
 }
 
-inline sal_Bool Security::logonUser( const rtl::OUString& strName,
+inline bool Security::logonUser( const rtl::OUString& strName,
                                       const rtl::OUString& strPasswd,
                                       const rtl::OUString& strFileServer )
 {
@@ -59,30 +59,30 @@ inline sal_Bool Security::logonUser( const rtl::OUString& strName,
             == osl_Security_E_None);
 }
 
-inline sal_Bool Security::getUserIdent( rtl::OUString& strIdent) const
+inline bool Security::getUserIdent( rtl::OUString& strIdent) const
 {
     return osl_getUserIdent( m_handle, &strIdent.pData );
 }
 
 
-inline sal_Bool Security::getUserName( rtl::OUString& strName ) const
+inline bool Security::getUserName( rtl::OUString& strName ) const
 {
     return osl_getUserName( m_handle, &strName.pData );
 }
 
 
-inline sal_Bool Security::getHomeDir( rtl::OUString& strDirectory) const
+inline bool Security::getHomeDir( rtl::OUString& strDirectory) const
 {
     return osl_getHomeDir(m_handle, &strDirectory.pData );
 }
 
 
-inline sal_Bool Security::getConfigDir( rtl::OUString& strDirectory ) const
+inline bool Security::getConfigDir( rtl::OUString& strDirectory ) const
 {
     return osl_getConfigDir( m_handle, &strDirectory.pData );
 }
 
-inline sal_Bool Security::isAdministrator() const
+inline bool Security::isAdministrator() const
 {
     return osl_isAdministrator(m_handle);
 }
diff --git a/include/osl/security_decl.hxx b/include/osl/security_decl.hxx
index 95785cd..4e0ff26 100644
--- a/include/osl/security_decl.hxx
+++ b/include/osl/security_decl.hxx
@@ -48,7 +48,7 @@ public:
         @return True, if the specified user is known by the underlying operating system,
         otherwise False
     */
-    inline sal_Bool SAL_CALL logonUser(const rtl::OUString& strName,
+    inline bool SAL_CALL logonUser(const rtl::OUString& strName,
                                        const rtl::OUString& strPasswd);
     /** get the security information for one user.
 
@@ -64,7 +64,7 @@ public:
         @return True, if the specified user is known by file server and the
         could be connected, otherwise False
     */
-    inline sal_Bool SAL_CALL logonUser(const rtl::OUString & strName,
+    inline bool SAL_CALL logonUser(const rtl::OUString & strName,
                                        const rtl::OUString & strPasswd,
                                        const rtl::OUString & strFileServer);
 
@@ -72,30 +72,30 @@ public:
         @param[out] strIdent is the OUString which returns the name
         @return True, if any user is successfully logged in, otherwise False
     */
-    inline sal_Bool  SAL_CALL getUserIdent( rtl::OUString& strIdent) const;
+    inline bool  SAL_CALL getUserIdent( rtl::OUString& strIdent) const;
 
     /** get the name of the logged in user.
         @param[out] strName is the OUString which returns the name
         @return True, if any user is successfully logged in, otherwise False
     */
-    inline sal_Bool SAL_CALL getUserName( rtl::OUString& strName) const;
+    inline bool SAL_CALL getUserName( rtl::OUString& strName) const;
 
     /** get the home directory of the logged in user.
         @param[out] strDirectory is the OUString which returns the directory name
          @return True, if any user is successfully logged in, otherwise False
     */
-    inline sal_Bool SAL_CALL getHomeDir( rtl::OUString& strDirectory) const;
+    inline bool SAL_CALL getHomeDir( rtl::OUString& strDirectory) const;
 
     /** get the directory for configuration data of the logged in user.
         @param[out] strDirectory is the OUString which returns the directory name
         @return True, if any user is successfully logged in, otherwise False
     */
-    inline sal_Bool SAL_CALL getConfigDir( rtl::OUString & strDirectory) const;
+    inline bool SAL_CALL getConfigDir( rtl::OUString & strDirectory) const;
 
     /** Query if the user who is logged inhas administrator rights.
         @return True, if the user has administrator rights, otherwise false.
     */
-    inline sal_Bool SAL_CALL isAdministrator() const;
+    inline bool SAL_CALL isAdministrator() const;
 
     /** Returns the underlying oslSecurity handle
      */
diff --git a/include/osl/socket.hxx b/include/osl/socket.hxx
index 2537d9f..f62f6f3 100644
--- a/include/osl/socket.hxx
+++ b/include/osl/socket.hxx
@@ -91,19 +91,19 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool SAL_CALL SocketAddr::setPort( sal_Int32 nPort )
+    inline bool SAL_CALL SocketAddr::setPort( sal_Int32 nPort )
     {
         return osl_setInetPortOfSocketAddr(m_handle, nPort );
     }
 
-    inline sal_Bool SAL_CALL SocketAddr::setHostname( const ::rtl::OUString &sDottedIpOrHostname )
+    inline bool SAL_CALL SocketAddr::setHostname( const ::rtl::OUString &sDottedIpOrHostname )
     {
         *this = SocketAddr( sDottedIpOrHostname , getPort() );
         return is();
     }
 
     //______________________________________________________________________________
-    inline sal_Bool SAL_CALL SocketAddr::setAddr( const ::rtl::ByteSequence & address )
+    inline bool SAL_CALL SocketAddr::setAddr( const ::rtl::ByteSequence & address )
     {
         return osl_setAddrOfSocketAddr( m_handle, address.getHandle() )
             == osl_Socket_Ok;
@@ -144,7 +144,7 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool SAL_CALL SocketAddr::operator== (oslSocketAddr Addr) const
+    inline bool SAL_CALL SocketAddr::operator== (oslSocketAddr Addr) const
     {
         return osl_isEqualSocketAddr( m_handle, Addr );
     }
@@ -155,7 +155,7 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool SocketAddr::is() const
+    inline bool SocketAddr::is() const
     {
         return m_handle != 0;
     }
@@ -233,13 +233,13 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::operator==( const Socket& rSocket ) const
+    inline bool Socket::operator==( const Socket& rSocket ) const
     {
         return m_handle == rSocket.getHandle();
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::operator==( const oslSocket socketHandle ) const
+    inline bool Socket::operator==( const oslSocket socketHandle ) const
     {
         return m_handle == socketHandle;
     }
@@ -301,25 +301,25 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::bind(const SocketAddr& LocalInterface)
+    inline bool Socket::bind(const SocketAddr& LocalInterface)
     {
         return osl_bindAddrToSocket( m_handle , LocalInterface.getHandle() );
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::isRecvReady(const TimeValue *pTimeout ) const
+    inline bool Socket::isRecvReady(const TimeValue *pTimeout ) const
     {
         return osl_isReceiveReady( m_handle , pTimeout );
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::isSendReady(const TimeValue *pTimeout ) const
+    inline bool Socket::isSendReady(const TimeValue *pTimeout ) const
     {
         return osl_isSendReady( m_handle, pTimeout );
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::isExceptionPending(const TimeValue *pTimeout ) const
+    inline bool Socket::isExceptionPending(const TimeValue *pTimeout ) const
     {
         return osl_isExceptionPending( m_handle, pTimeout );
     }
@@ -341,7 +341,7 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::setOption(  oslSocketOption Option,
+    inline bool Socket::setOption(  oslSocketOption Option,
                                         void* pBuffer,
                                         sal_uInt32 BufferLen,
                                         oslSocketOptionLevel Level ) const
@@ -350,7 +350,7 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::setOption( oslSocketOption option, sal_Int32 nValue  )
+    inline bool Socket::setOption( oslSocketOption option, sal_Int32 nValue  )
     {
         return setOption( option, &nValue, sizeof( nValue ) );
     }
@@ -364,13 +364,13 @@ namespace osl
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::enableNonBlockingMode( sal_Bool bNonBlockingMode)
+    inline bool Socket::enableNonBlockingMode( bool bNonBlockingMode)
     {
         return osl_enableNonBlockingMode( m_handle , bNonBlockingMode );
     }
 
     //______________________________________________________________________________
-    inline sal_Bool Socket::isNonBlockingMode() const
+    inline bool Socket::isNonBlockingMode() const
     {
         return osl_isNonBlockingMode( m_handle );
     }
@@ -475,7 +475,7 @@ namespace osl
     {}
 
     //______________________________________________________________________________
-    inline sal_Bool AcceptorSocket::listen(sal_Int32 MaxPendingConnections)
+    inline bool AcceptorSocket::listen(sal_Int32 MaxPendingConnections)
     {
         return osl_listenOnSocket( m_handle, MaxPendingConnections );
     }
diff --git a/include/osl/socket_decl.hxx b/include/osl/socket_decl.hxx
index 38c9d76..5a4c546 100644
--- a/include/osl/socket_decl.hxx
+++ b/include/osl/socket_decl.hxx
@@ -69,10 +69,10 @@ namespace osl
         inline ~SocketAddr();
 
         /** checks, if the SocketAddr was created successful.
-            @return <code>sal_True</code> if there is a valid underlying handle,
-                    otherwise sal_False.
+            @return <code>true</code> if there is a valid underlying handle,
+                    otherwise false.
          */
-        inline sal_Bool is() const;
+        inline bool is() const;
 
         /** Converts the address to a (human readable) domain-name.
 
@@ -86,7 +86,7 @@ namespace osl
 
         /** Sets the ipaddress or hostname of the SocketAddress
          */
-        inline sal_Bool SAL_CALL setHostname( const ::rtl::OUString &sDottedIpOrHostname );
+        inline bool SAL_CALL setHostname( const ::rtl::OUString &sDottedIpOrHostname );
 
         /** Returns the port number of the address.
             @return the port in host-byte order or or OSL_INVALID_PORT on errors.
@@ -96,12 +96,12 @@ namespace osl
         /** Sets the port number of the address.
            @return true if successfule.
          */
-        inline sal_Bool SAL_CALL setPort( sal_Int32 nPort );
+        inline bool SAL_CALL setPort( sal_Int32 nPort );
 
         /** Sets the address of the underlying socket address struct in network byte order.
             @return true on success, false signales falure.
          */
-        inline sal_Bool SAL_CALL setAddr( const ::rtl::ByteSequence & address );
+        inline bool SAL_CALL setAddr( const ::rtl::ByteSequence & address );
 
         /** Returns the address of the underlying socket in network byte order
           */
@@ -123,11 +123,11 @@ namespace osl
 
         /** Returns true if the underlying handle is identical to the Addr handle.
          */
-        inline sal_Bool SAL_CALL operator== (oslSocketAddr Addr) const;
+        inline bool SAL_CALL operator== (oslSocketAddr Addr) const;
 
         /** Returns true if the underlying handle is identical to the Addr handle.
          */
-        inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const;
+        inline bool SAL_CALL operator== (const SocketAddr & Addr) const;
 
         /** Returns the underlying SocketAddr handle without copyconstructing it.
          */
@@ -201,16 +201,16 @@ namespace osl
         inline Socket& SAL_CALL operator= (const Socket& sock);
 
         /**
-           @return <code>sal_True</code>, when the underlying handle of both
-                         Socket instances are identical, <code>sal_False</code> otherwise.
+           @return <code>true</code>, when the underlying handle of both
+                         Socket instances are identical, <code>false</code> otherwise.
          */
-        inline sal_Bool SAL_CALL operator==( const Socket& rSocket ) const ;
+        inline bool SAL_CALL operator==( const Socket& rSocket ) const ;
 
         /**
-           @return <code>sal_True</code>, when the underlying handle of both
-                         Socket instances are identical, <code>sal_False</code> otherwise.
+           @return <code>true</code>, when the underlying handle of both
+                         Socket instances are identical, <code>false</code> otherwise.
          */
-        inline sal_Bool SAL_CALL operator==( const oslSocket socketHandle ) const;
+        inline bool SAL_CALL operator==( const oslSocket socketHandle ) const;
 
         /** Closes a definite or both directions of the bidirectional stream.
 
@@ -261,31 +261,31 @@ namespace osl
             @param LocalInterface Address of the Interface
             @return True if bind was successful.
         */
-        inline sal_Bool SAL_CALL bind(const SocketAddr& LocalInterface);
+        inline bool SAL_CALL bind(const SocketAddr& LocalInterface);
 
         /** Checks if read operations will block.
 
             You can specify a timeout-value in seconds/nanoseconds that denotes
             how the operation will block if the Socket is not ready.
-            @return <code>sal_True</code> if read operations (recv, recvFrom, accept) on the Socket
-            will NOT block; <code>sal_False</code> if it would block or if an error occurred.
+            @return <code>true</code> if read operations (recv, recvFrom, accept) on the Socket
+            will NOT block; <code>false</code> if it would block or if an error occurred.
 
             @param pTimeout if 0, the operation will block without a timeout. Otherwise
             the specified amout of time.
         */
-        inline sal_Bool SAL_CALL isRecvReady(const TimeValue *pTimeout = 0) const;
+        inline bool SAL_CALL isRecvReady(const TimeValue *pTimeout = 0) const;
 
         /** Checks if send operations will block.
 
             You can specify a timeout-value in seconds/nanoseconds that denotes
             how the operation will block if the Socket is not ready.
-            @return <code>sal_True</code> if send operations (send, sendTo) on the Socket
-            will NOT block; <code>sal_False</code> if it would block or if an error occurred.
+            @return <code>true</code> if send operations (send, sendTo) on the Socket
+            will NOT block; <code>false</code> if it would block or if an error occurred.
 
             @param pTimeout if 0, the operation will block without a timeout. Otherwise
             the specified amout of time.
         */
-        inline sal_Bool SAL_CALL isSendReady(const TimeValue *pTimeout = 0) const;
+        inline bool SAL_CALL isSendReady(const TimeValue *pTimeout = 0) const;
 
 
         /** Checks if a request for out-of-band data will block.
@@ -293,14 +293,14 @@ namespace osl
             You can specify a timeout-value in seconds/nanoseconds that denotes
             how the operation will block if the Socket has no pending OOB data.
 
-            @return <code>sal_True</code> if OOB-request operations (recv with appropriate flags)
-            on the Socket will NOT block; <code>sal_False</code> if it would block or if
+            @return <code>true</code> if OOB-request operations (recv with appropriate flags)
+            on the Socket will NOT block; <code>false</code> if it would block or if
             an error occurred.
 
             @param pTimeout if 0, the operation will block without a timeout. Otherwise
             the specified amout of time.
         */
-        inline sal_Bool SAL_CALL isExceptionPending(const TimeValue *pTimeout = 0) const;
+        inline bool SAL_CALL isExceptionPending(const TimeValue *pTimeout = 0) const;
 
 
         /** Queries the socket for its type.
@@ -444,7 +444,7 @@ namespace osl
 
             @return True if the option could be changed.
         */
-        inline sal_Bool SAL_CALL setOption( oslSocketOption Option,
+        inline bool SAL_CALL setOption( oslSocketOption Option,
                                             void* pBuffer,
                                             sal_uInt32 BufferLen,
                                             oslSocketOptionLevel Level= osl_Socket_LevelSocket ) const;
@@ -452,7 +452,7 @@ namespace osl
         /** Convenience function for setting sal_Bool and sal_Int32 option values.
             @see setOption()
          */
-        inline sal_Bool setOption( oslSocketOption option, sal_Int32 nValue  );
+        inline bool setOption( oslSocketOption option, sal_Int32 nValue  );
 
         /** Convenience function for retrieving sal_Bool and sal_Int32 option values.
             @see setOption()
@@ -460,17 +460,17 @@ namespace osl
         inline sal_Int32 getOption( oslSocketOption option ) const;
 
         /** Enables/disables non-blocking mode of the socket.
-            @param bNonBlockingMode If <code>sal_True</code>, blocking mode will be switched off
-                   If <code>sal_False</code>, the socket will become a blocking
+            @param bNonBlockingMode If <code>true</code>, blocking mode will be switched off
+                   If <code>false</code>, the socket will become a blocking
                    socket (which is the default behaviour of a socket).
-            @return <code>sal_True</code> if mode could be set.
+            @return <code>true</code> if mode could be set.
         */
-        inline sal_Bool SAL_CALL enableNonBlockingMode( sal_Bool bNonBlockingMode);
+        inline bool SAL_CALL enableNonBlockingMode( bool bNonBlockingMode);
 
         /** Query blocking mode of the socket.
-            @return <code>sal_True</code> if non-blocking mode is set.
+            @return <code>true</code> if non-blocking mode is set.
         */
-        inline sal_Bool SAL_CALL isNonBlockingMode() const;
+        inline bool SAL_CALL isNonBlockingMode() const;
 
 
         /** clears the error status
@@ -621,9 +621,9 @@ namespace osl
             @param MaxPendingConnections The maximum number of pending
             connections (waiting to be accepted) on this socket. If you use
             -1, a system default value is used.
-            @return <code>sal_True</code> if call was successful.
+            @return <code>true</code> if call was successful.
         */
-        inline sal_Bool SAL_CALL listen(sal_Int32 MaxPendingConnections= -1);
+        inline bool SAL_CALL listen(sal_Int32 MaxPendingConnections= -1);
 
         /** Accepts incoming connections on the socket. You must
             precede this call with osl::Socket::bind() and listen().
diff --git a/include/osl/thread.hxx b/include/osl/thread.hxx
index 2f91b29..398eca1 100644
--- a/include/osl/thread.hxx
+++ b/include/osl/thread.hxx
@@ -69,7 +69,7 @@ public:
         osl_destroyThread( m_hThread);
     }
 
-    sal_Bool SAL_CALL create()
+    bool SAL_CALL create()
     {
         assert(m_hThread == 0); // only one running thread per instance
         m_hThread = osl_createSuspendedThread( threadFunc, (void*)this);
@@ -81,11 +81,11 @@ public:
         return true;
     }
 
-    sal_Bool SAL_CALL createSuspended()
+    bool SAL_CALL createSuspended()
     {
         assert(m_hThread == 0); // only one running thread per instance
         if( m_hThread)
-            return sal_False;
+            return false;
         m_hThread= osl_createSuspendedThread( threadFunc,
                                              (void*)this);
         return m_hThread != 0;
@@ -114,7 +114,7 @@ public:
         osl_joinWithThread(m_hThread);
     }
 
-    sal_Bool SAL_CALL isRunning() const
+    bool SAL_CALL isRunning() const
     {
         return osl_isThreadRunning(m_hThread);
     }
@@ -154,9 +154,9 @@ public:
         osl_setThreadName(name);
     }
 
-    virtual sal_Bool SAL_CALL schedule()
+    virtual bool SAL_CALL schedule()
     {
-        return m_hThread ? osl_scheduleThread(m_hThread) : sal_False;
+        return m_hThread && osl_scheduleThread(m_hThread);
     }
 
     SAL_CALL operator oslThread() const
@@ -208,7 +208,7 @@ public:
     /** Set the data associated with the data key.
         @returns True if operation was successful
     */
-    sal_Bool SAL_CALL setData(void *pData)
+    bool SAL_CALL setData(void *pData)
     {
            return (osl_setThreadKeyData(m_hKey, pData));
     }
diff --git a/include/rtl/bootstrap.hxx b/include/rtl/bootstrap.hxx
index b73c47c..b46d0bc 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);
diff --git a/include/rtl/byteseq.h b/include/rtl/byteseq.h
index 694d7e3..2cee659 100644
--- a/include/rtl/byteseq.h
+++ b/include/rtl/byteseq.h
@@ -280,13 +280,13 @@ public:
         @param rSeq another byte sequence (right side)
         @return true if both sequences are equal, false otherwise
     */
-    inline sal_Bool SAL_CALL operator == ( const ByteSequence & rSeq ) const SAL_THROW(());
+    inline bool SAL_CALL operator == ( const ByteSequence & rSeq ) const SAL_THROW(());
     /** Unequality operator: Compares two sequences.
 
         @param rSeq another byte sequence (right side)
         @return false if both sequences are equal, true otherwise
     */
-    inline sal_Bool SAL_CALL operator != ( const ByteSequence & rSeq ) const SAL_THROW(());
+    inline bool SAL_CALL operator != ( const ByteSequence & rSeq ) const SAL_THROW(());
 
     /** Reallocates sequence to new length. If the sequence has a handle acquired by other sequences
         (reference count > 1), then the remaining elements are copied to a new sequence handle to
diff --git a/include/rtl/byteseq.hxx b/include/rtl/byteseq.hxx
index 1d39dde..c84bc9f 100644
--- a/include/rtl/byteseq.hxx
+++ b/include/rtl/byteseq.hxx
@@ -87,7 +87,7 @@ inline ByteSequence & ByteSequence::operator = ( const ByteSequence & rSeq ) SAL
     return *this;
 }
 //__________________________________________________________________________________________________
-inline sal_Bool ByteSequence::operator == ( const ByteSequence & rSeq ) const SAL_THROW(())
+inline bool ByteSequence::operator == ( const ByteSequence & rSeq ) const SAL_THROW(())
 {
     return ::rtl_byte_sequence_equals( _pSequence, rSeq._pSequence );
 }
@@ -112,7 +112,7 @@ inline sal_Int8 & ByteSequence::operator [] ( sal_Int32 nIndex )
     return getArray()[ nIndex ];
 }
 //__________________________________________________________________________________________________
-inline sal_Bool ByteSequence::operator != ( const ByteSequence & rSeq ) const SAL_THROW(())
+inline bool ByteSequence::operator != ( const ByteSequence & rSeq ) const SAL_THROW(())
 {
     return (! operator == ( rSeq ));
 }
diff --git a/include/rtl/ref.hxx b/include/rtl/ref.hxx
index 2b93af2..cccbc01 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);
diff --git a/sal/qa/ByteSequence/ByteSequence.cxx b/sal/qa/ByteSequence/ByteSequence.cxx
index 7ce6e46..c742337 100644
--- a/sal/qa/ByteSequence/ByteSequence.cxx
+++ b/sal/qa/ByteSequence/ByteSequence.cxx
@@ -131,20 +131,20 @@ public:
     void test_same0() {
         rtl::ByteSequence s1;
         rtl::ByteSequence s2;
-        CPPUNIT_ASSERT_EQUAL(sal_True, s1 == s2);
-        CPPUNIT_ASSERT_EQUAL(sal_True, s2 == s1);
-        CPPUNIT_ASSERT_EQUAL(sal_False, s1 != s2);
-        CPPUNIT_ASSERT_EQUAL(sal_False, s2 != s1);
+        CPPUNIT_ASSERT_EQUAL(true, s1 == s2);
+        CPPUNIT_ASSERT_EQUAL(true, s2 == s1);
+        CPPUNIT_ASSERT_EQUAL(false, s1 != s2);
+        CPPUNIT_ASSERT_EQUAL(false, s2 != s1);
     }
 
     void test_diffLen() {
         sal_Int8 const a[5] = { 0, 1, 2, 3, 4 };
         rtl::ByteSequence s1(a, 5);
         rtl::ByteSequence s2(a, 4);
-        CPPUNIT_ASSERT_EQUAL(sal_False, s1 == s2);
-        CPPUNIT_ASSERT_EQUAL(sal_False, s2 == s1);
-        CPPUNIT_ASSERT_EQUAL(sal_True, s1 != s2);
-        CPPUNIT_ASSERT_EQUAL(sal_True, s2 != s1);
+        CPPUNIT_ASSERT_EQUAL(false, s1 == s2);
+        CPPUNIT_ASSERT_EQUAL(false, s2 == s1);
+        CPPUNIT_ASSERT_EQUAL(true, s1 != s2);
+        CPPUNIT_ASSERT_EQUAL(true, s2 != s1);
     }
 
     void test_diffElem() {
@@ -152,10 +152,10 @@ public:
         rtl::ByteSequence s1(a1, 5);
         sal_Int8 const a2[5] = { 0, 1, 10, 3, 4 };
         rtl::ByteSequence s2(a2, 5);
-        CPPUNIT_ASSERT_EQUAL(sal_False, s1 == s2);
-        CPPUNIT_ASSERT_EQUAL(sal_False, s2 == s1);
-        CPPUNIT_ASSERT_EQUAL(sal_True, s1 != s2);
-        CPPUNIT_ASSERT_EQUAL(sal_True, s2 != s1);
+        CPPUNIT_ASSERT_EQUAL(false, s1 == s2);
+        CPPUNIT_ASSERT_EQUAL(false, s2 == s1);
+        CPPUNIT_ASSERT_EQUAL(true, s1 != s2);
+        CPPUNIT_ASSERT_EQUAL(true, s2 != s1);
     }
 
     CPPUNIT_TEST_SUITE(Test);
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 1da398a..76419a7 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -438,7 +438,7 @@ inline void deleteTestDirectory( const ::rtl::OUString dirname )
         ::osl::FileBase::getFileURLFromSystemPath( dirname, aPathURL ); //convert if not full qualified URL
 
     ::osl::Directory testDir( aPathURL );
-    if ( testDir.isOpen() == sal_True )
+    if ( testDir.isOpen() )
         testDir.close();  //close if still open.
 
     nError = ::osl::Directory::remove( aPathURL );
@@ -1530,7 +1530,7 @@ namespace osl_VolumeInfo
              sal_Int32 mask1 = osl_VolumeInfo_Mask_FreeSpace;
             ::osl::VolumeInfo aVolumeInfo1( mask1 );
             nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo1.isValid( mask1 ) );
+            CPPUNIT_ASSERT( aVolumeInfo1.isValid( mask1 ) );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
 
             sal_uInt64 uiTotalSpace1 = aVolumeInfo1.getTotalSpace();
@@ -1539,7 +1539,7 @@ namespace osl_VolumeInfo
              sal_Int32 mask2 = osl_VolumeInfo_Mask_TotalSpace;
             ::osl::VolumeInfo aVolumeInfo2( mask2 );
             nError2 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo2 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo2.isValid( mask2 ) );
+            CPPUNIT_ASSERT( aVolumeInfo2.isValid( mask2 ) );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError2 );
 
             sal_uInt64 uiTotalSpace2 = aVolumeInfo2.getTotalSpace();
@@ -1588,7 +1588,7 @@ namespace osl_VolumeInfo
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
 
             CPPUNIT_ASSERT_MESSAGE( "test for isValid function: no fields specified.",
-                                      sal_True == aVolumeInfo.isValid( mask ) );
+                                      aVolumeInfo.isValid( mask ) );
         }
 
 #if ( defined UNX )
@@ -1602,7 +1602,7 @@ namespace osl_VolumeInfo
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
 
             CPPUNIT_ASSERT_MESSAGE( "test for isValid function: all valid fields specified for a nfs volume.",
-                                     sal_True == aVolumeInfo.isValid( mask ) );
+                                     aVolumeInfo.isValid( mask ) );
         }
 #else           /// Windows version,here we can not determine whichvolume in Windows is serve as an nfs volume.
         void isValid_002()
@@ -1908,7 +1908,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiTotalSpace = aVolumeInfo.getTotalSpace();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getTotalSpace function: get total space of Fixed disk volume mounted on /, it should not be 0",
@@ -1922,7 +1922,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiTotalSpace = aVolumeInfo.getTotalSpace();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getTotalSpace function: get total space of /proc, it should be 0",
@@ -1990,7 +1990,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiFreeSpace = aVolumeInfo.getFreeSpace();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getFreeSpace function: get free space of Fixed disk volume mounted on /, it should not be 0, suggestion: returned value, -1 is better, since some times the free space may be 0",
@@ -2004,7 +2004,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiFreeSpace = aVolumeInfo.getFreeSpace();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getFreeSpace function: get free space of /proc, it should be 0",
@@ -2072,7 +2072,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiUsedSpace = aVolumeInfo.getUsedSpace();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getUsedSpace function: get used space of Fixed disk volume mounted on /, it should not be 0, suggestion: returned value, -1 is better, since some times the used space may be 0",
@@ -2086,7 +2086,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiUsedSpace = aVolumeInfo.getUsedSpace();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getUsedSpace function: get used space of /proc, it should be 0",
@@ -2156,7 +2156,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt32 uiMaxNameLength = aVolumeInfo.getMaxNameLength();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getMaxNameLength function: get max name length of Fixed disk volume mounted on /, it should not be 0",
@@ -2178,7 +2178,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiMaxNameLength = aVolumeInfo.getMaxNameLength();
 
              CPPUNIT_ASSERT_MESSAGE( "test for getMaxNameLength function: get max name length by hand, then compare with getMaxNameLength",
@@ -2216,7 +2216,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt32 uiMaxPathLength = aVolumeInfo.getMaxPathLength();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getMaxPathLength function: get max path length of Fixed disk volume mounted on /, it should not be 0",
@@ -2231,7 +2231,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             sal_uInt64 uiMaxPathLength = aVolumeInfo.getMaxPathLength();
 
              CPPUNIT_ASSERT_MESSAGE( "test for getMaxPathLength function: get max path length by hand, then compare with getMaxPathLength",
@@ -2271,7 +2271,7 @@ namespace osl_VolumeInfo
             ::osl::VolumeInfo aVolumeInfo( mask );
             nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo );
             CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
-            CPPUNIT_ASSERT( sal_True == aVolumeInfo.isValid( mask ) );
+            CPPUNIT_ASSERT( aVolumeInfo.isValid( mask ) );
             aUStr = aVolumeInfo.getFileSystemName();
 
             CPPUNIT_ASSERT_MESSAGE( "test for getFileSystemName function: get file system name of Fixed disk volume mounted on /, it should not be empty string",
@@ -2595,7 +2595,7 @@ namespace osl_FileStatus
                     if ( compareFileName( rFileStatus.getFileName(), aFileName) == sal_True )
                     {
                         //printf("find the link file");
-                        if ( sal_True == rFileStatus.isValid( osl_FileStatus_Mask_LinkTargetURL ) )
+                        if ( rFileStatus.isValid( osl_FileStatus_Mask_LinkTargetURL ) )
                         {
                             bOk = sal_True;
                             break;
@@ -4937,7 +4937,7 @@ namespace osl_DirectoryItem
             CPPUNIT_ASSERT( FileBase::E_None == nError1 );
 
             CPPUNIT_ASSERT_MESSAGE( "test for is function: use an uninitialized instance.",
-                                    ( sal_True == rItem.is() ) );
+                                    rItem.is() );
         }
 
         CPPUNIT_TEST_SUITE( is );
diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx
index d6358d4..a5de11a 100644
--- a/sal/qa/osl/module/osl_Module.cxx
+++ b/sal/qa/osl/module/osl_Module.cxx
@@ -98,7 +98,7 @@ inline void deleteTestDirectory( const ::rtl::OUString dirname )
         ::osl::FileBase::getFileURLFromSystemPath( dirname, aPathURL ); //convert if not full qualified URL
 
     ::osl::Directory testDir( aPathURL );
-    if ( testDir.isOpen( ) == sal_True )
+    if ( testDir.isOpen( ) )
     {
             testDir.close( );  //close if still open.
         }
diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx
index 0e9ce85..6eafeed 100644
--- a/sal/qa/osl/mutex/osl_Mutex.cxx
+++ b/sal/qa/osl/mutex/osl_Mutex.cxx
@@ -98,7 +98,7 @@ public:
 
     ~IncreaseThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#IncreaseThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#IncreaseThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     struct resource *pResource;
@@ -126,7 +126,7 @@ public:
 
     ~DecreaseThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#DecreaseThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#DecreaseThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     struct resource *pResource;
@@ -164,7 +164,7 @@ public:
 
     ~PutThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#PutThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#PutThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     struct chain* pChain;
@@ -202,7 +202,7 @@ public:
 
     ~HoldThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#HoldThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#HoldThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     Mutex* pMyMutex;
@@ -224,7 +224,7 @@ public:
 
     ~WaitThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#WaitThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#WaitThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     Mutex* pMyMutex;
@@ -248,7 +248,7 @@ public:
 
     ~GlobalMutexThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#GlobalMutexThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#GlobalMutexThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     void SAL_CALL run( )
@@ -573,7 +573,7 @@ public:
 
     ~GuardThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#GuardThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#GuardThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     Mutex* pMyMutex;
@@ -659,7 +659,7 @@ public:
 
     ~ClearGuardThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#ClearGuardThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#ClearGuardThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     Mutex* pMyMutex;
@@ -734,7 +734,7 @@ namespace osl_ClearableGuard
 
             while (1)
             {
-                if (aMutex.tryToAcquire() == sal_True)
+                if (aMutex.tryToAcquire())
                 {
                     break;
                 }
@@ -801,7 +801,7 @@ public:
 
     ~ResetGuardThread( )
     {
-        CPPUNIT_ASSERT_MESSAGE( "#ResetGuardThread does not shutdown properly.\n", sal_False == this -> isRunning( ) );
+        CPPUNIT_ASSERT_MESSAGE( "#ResetGuardThread does not shutdown properly.\n", !isRunning( ) );
     }
 protected:
     Mutex* pMyMutex;
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx
index 3e394aa..b27e187 100644
--- a/sal/qa/osl/process/osl_Thread.cxx
+++ b/sal/qa/osl/process/osl_Thread.cxx
@@ -290,7 +290,7 @@ protected:
     void SAL_CALL run()
         {
             /// if the thread should terminate, schedule return false
-            while (m_aFlag.getValue() < 20 && schedule() == sal_True)
+            while (m_aFlag.getValue() < 20 && schedule())
             {
                 m_aFlag.addValue(1);
                 ThreadHelper::thread_sleep_tenth_sec(1);
@@ -344,7 +344,7 @@ protected:
     void SAL_CALL run()
         {
             //if the thread should terminate, schedule return false
-            while (schedule() == sal_True)
+            while (schedule())
             {
                 m_aFlag.addValue(1);
 
@@ -430,7 +430,7 @@ protected:
     void SAL_CALL run()
         {
             //if the thread should terminate, schedule return false
-            while (schedule() == sal_True)
+            while (schedule())
             {
                 m_aFlag.addValue(1);
             }
diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx
index f24d404..0d7fd4e 100644
--- a/sal/qa/osl/security/osl_Security.cxx
+++ b/sal/qa/osl/security/osl_Security.cxx
@@ -247,15 +247,15 @@ namespace osl_Security
     class getHandle : public CppUnit::TestFixture
     {
     public:
-        sal_Bool bRes;
+        bool bRes;
 
         void getHandle_001( )
         {
             ::osl::Security aSec;
-            bRes = aSec.isAdministrator( ) == osl_isAdministrator( aSec.getHandle( ) );
+            bRes = aSec.isAdministrator( ) == bool(osl_isAdministrator( aSec.getHandle( ) ));
 
             CPPUNIT_ASSERT_MESSAGE( "#test comment#: use getHandle function to call C API.",
-                                     bRes == sal_True );
+                                     bRes );
         }
 
         CPPUNIT_TEST_SUITE( getHandle );
commit 65191cda819ee8f4d14f6cdf12568c35e46b5c66
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jan 27 10:44:30 2014 +0100

    bool improvements
    
    Change-Id: I757e19313576d2c3d13af1cb720f182f0de91613

diff --git a/cppu/source/threadpool/threadpool.hxx b/cppu/source/threadpool/threadpool.hxx
index 61c6e0e..18bb509 100644
--- a/cppu/source/threadpool/threadpool.hxx
+++ b/cppu/source/threadpool/threadpool.hxx
@@ -41,7 +41,7 @@ namespace cppu_threadpool {
 
     struct EqualThreadId
     {
-        sal_Int32 operator () ( const ::rtl::ByteSequence &a , const ::rtl::ByteSequence &b ) const
+        bool operator () ( const ::rtl::ByteSequence &a , const ::rtl::ByteSequence &b ) const
             {
                 return a == b;
             }
diff --git a/extensions/source/update/check/download.hxx b/extensions/source/update/check/download.hxx
index b1d22e7..bb62736 100644
--- a/extensions/source/update/check/download.hxx
+++ b/extensions/source/update/check/download.hxx
@@ -63,7 +63,7 @@ public:
 
     // returns true if the stop condition is set
     bool isStopped() const
-        { return sal_True == const_cast <Download *> (this)->m_aCondition.check(); };
+        { return const_cast <Download *> (this)->m_aCondition.check(); };
 
 protected:
 
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index f38d745..2e0ab73 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -473,7 +473,7 @@ UpdateCheckThread::run()
 
     try {
 
-        while( sal_True == schedule() )
+        while( schedule() )
         {
             /* Use cases:
              *  a) manual check requested from auto check thread - "last check" should not be checked (one time)
@@ -1572,7 +1572,7 @@ bool
 UpdateCheck::isDialogShowing() const
 {
     osl::MutexGuard aGuard(m_aMutex);
-    return sal_True == m_aUpdateHandler.is() && m_aUpdateHandler->isVisible();
+    return m_aUpdateHandler.is() && m_aUpdateHandler->isVisible();
 };
 
 //------------------------------------------------------------------------------
diff --git a/framework/inc/threadhelp/gate.hxx b/framework/inc/threadhelp/gate.hxx
index 643e68a..1960909 100644
--- a/framework/inc/threadhelp/gate.hxx
+++ b/framework/inc/threadhelp/gate.hxx
@@ -107,7 +107,7 @@ class Gate : public  IGate
             m_aPassage.set();
             // Check if operation was successful!
             // Check returns false if condition isn't set => m_bClosed will be true then => we must return false; opening failed
-            m_bClosed = ( m_aPassage.check() == sal_False );
+            m_bClosed = !m_aPassage.check();
         }
 
         /*-****************************************************************************************************//**
@@ -130,7 +130,7 @@ class Gate : public  IGate
             m_aPassage.reset();
             // Check if operation was successful!
             // Check returns false if condition was reseted => m_bClosed will be true then => we can return true; closing ok
-            m_bClosed = ( m_aPassage.check() == sal_False );
+            m_bClosed = !m_aPassage.check();
         }
 
         /*-****************************************************************************************************//**
@@ -156,7 +156,7 @@ class Gate : public  IGate
             m_aPassage.set();
             // Check state of condition.
             // If condition is set check() returns true => m_bGapOpen will be true too => we can use it as return value.
-            m_bGapOpen = ( m_aPassage.check() == sal_True );
+            m_bGapOpen = m_aPassage.check();
         }
 
         /*-****************************************************************************************************//**
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index 8310d79..aa4091c 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -360,7 +360,7 @@ javaPluginError jfw_plugin_getJavaInfoByPath(
         return JFW_PLUGIN_E_INVALID_ARG;
 
     rtl::Reference<VendorBase> aVendorInfo = getJREInfoByPath(ouPath);
-    if (aVendorInfo.is() == sal_False)
+    if (!aVendorInfo.is())
         return JFW_PLUGIN_E_NO_JRE;
 
     //Check if the detected JRE matches the version requirements
diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx
index 4b2bbef..3810989 100644
--- a/jvmfwk/source/framework.cxx
+++ b/jvmfwk/source/framework.cxx
@@ -130,7 +130,7 @@ javaFrameworkError SAL_CALL jfw_findAllJREs(JavaInfo ***pparInfo, sal_Int32 *pSi
             arModules[cModule].load(library.sPath);
             osl::Module & pluginLib = arModules[cModule];
 
-            if (pluginLib.is() == sal_False)
+            if (!pluginLib.is())
             {
                 OString msg = OUStringToOString(
                     library.sPath, osl_getThreadTextEncoding());
@@ -504,7 +504,7 @@ javaFrameworkError SAL_CALL jfw_findAndSelectJRE(JavaInfo **pInfo)
 #ifndef DISABLE_DYNLOADING
             arModules[cModule].load(library.sPath);
             osl::Module & pluginLib = arModules[cModule];
-            if (pluginLib.is() == sal_False)
+            if (!pluginLib.is())
                 return JFW_E_NO_PLUGIN;
 
             jfw_plugin_getAllJavaInfos_ptr getAllJavaFunc =
@@ -588,7 +588,7 @@ javaFrameworkError SAL_CALL jfw_findAndSelectJRE(JavaInfo **pInfo)
                     aVendorSettings.getVersionInformation(library.sVendor);
 #ifndef DISABLE_DYNLOADING
                 osl::Module pluginLib(library.sPath);
-                if (pluginLib.is() == sal_False)
+                if (!pluginLib.is())
                     return JFW_E_NO_PLUGIN;
                 //Check if the current plugin can detect JREs at the location
                 // of the paths added by jfw_setJRELocations or jfw_addJRELocation
@@ -815,7 +815,7 @@ javaFrameworkError SAL_CALL jfw_getJavaInfoByPath(
 #ifndef DISABLE_DYNLOADING
             arModules[cModule].load(library.sPath);
             osl::Module & pluginLib = arModules[cModule];
-            if (pluginLib.is() == sal_False)
+            if (!pluginLib.is())
             {
                 OString msg = OUStringToOString(
                     library.sPath, osl_getThreadTextEncoding());
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx
index 7990370..29949c6 100644
--- a/jvmfwk/source/fwkbase.cxx
+++ b/jvmfwk/source/fwkbase.cxx
@@ -319,7 +319,7 @@ OUString VendorSettings::getPluginLibrary(const OUString& sVendor)
     {
         OUString sName = OUString(UNO_JAVA_JFW_PARAMETER) + OUString::number(i);
         OUString sValue;
-        if (Bootstrap::get()->getFrom(sName, sValue) == sal_True)
+        if (Bootstrap::get()->getFrom(sName, sValue))
         {
             OString sParam =
                 OUStringToOString(sValue, osl_getThreadTextEncoding());
@@ -352,7 +352,7 @@ OString BootParams::getClasspath()
     OUString sCP;
     if (Bootstrap::get()->getFrom(
         OUString(UNO_JAVA_JFW_CLASSPATH),
-        sCP) == sal_True)
+        sCP))
     {
         sClassPath = OUStringToOString(sCP, osl_getThreadTextEncoding());
 #if OSL_DEBUG_LEVEL >=2
@@ -364,7 +364,7 @@ OString BootParams::getClasspath()
     OUString sEnvCP;
     if (Bootstrap::get()->getFrom(
         OUString(UNO_JAVA_JFW_ENV_CLASSPATH),
-        sEnvCP) == sal_True)
+        sEnvCP))
     {
         char * pCp = getenv("CLASSPATH");
         if (pCp)
@@ -386,7 +386,7 @@ OUString BootParams::getVendorSettings()
     OUString sVendor;
     OUString sName(
         UNO_JAVA_JFW_VENDOR_SETTINGS);
-    if (Bootstrap::get()->getFrom(sName ,sVendor) == sal_True)
+    if (Bootstrap::get()->getFrom(sName ,sVendor))
     {
         //check the value of the bootstrap variable
         jfw::FileStatus s = checkFileURL(sVendor);
@@ -510,21 +510,21 @@ JFW_MODE getMode()
         OUString sValue;
         const rtl::Bootstrap * aBoot = Bootstrap::get();
         OUString sJREHome(UNO_JAVA_JFW_JREHOME);
-        if (aBoot->getFrom(sJREHome, sValue) == sal_False)
+        if (!aBoot->getFrom(sJREHome, sValue))
         {
             OUString sEnvJRE(UNO_JAVA_JFW_ENV_JREHOME);
-            if (aBoot->getFrom(sEnvJRE, sValue) == sal_False)
+            if (!aBoot->getFrom(sEnvJRE, sValue))
             {
                 OUString sClasspath(UNO_JAVA_JFW_CLASSPATH);
-                if (aBoot->getFrom(sClasspath, sValue) == sal_False)
+                if (!aBoot->getFrom(sClasspath, sValue))
                 {
                     OUString sEnvClasspath(UNO_JAVA_JFW_ENV_CLASSPATH);
-                    if (aBoot->getFrom(sEnvClasspath, sValue) == sal_False)
+                    if (!aBoot->getFrom(sEnvClasspath, sValue))
                     {
                         OUString sParams = OUString(
                             UNO_JAVA_JFW_PARAMETER) +
                             OUString::number(1);
-                        if (aBoot->getFrom(sParams, sValue) == sal_False)
+                        if (!aBoot->getFrom(sParams, sValue))
                         {
                             bDirectMode = false;
                         }


More information about the Libreoffice-commits mailing list