[Libreoffice-commits] core.git: sal/osl

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 26 14:56:58 UTC 2019


 sal/osl/w32/profile.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0864947e633c0c146a50e1704eabfad113641a90
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Feb 26 11:01:53 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Feb 26 15:56:35 2019 +0100

    loplugin:simplifybool (clang-cl)
    
    Change-Id: Ia10e08c04fb6dfc18597fcfba3fe52cf0ba7184c
    Reviewed-on: https://gerrit.libreoffice.org/68377
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index df5dc0971b4a..728bac9935aa 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -337,7 +337,7 @@ static bool writeProfileImpl(osl_TFile* pFile)
     DWORD BytesWritten=0;
     BOOL bRet;
 
-    if ( !( pFile != nullptr && pFile->m_Handle != INVALID_HANDLE_VALUE ) || ( pFile->m_pWriteBuf == nullptr ) )
+    if ( pFile == nullptr || pFile->m_Handle == INVALID_HANDLE_VALUE || ( pFile->m_pWriteBuf == nullptr ) )
     {
         return false;
     }


More information about the Libreoffice-commits mailing list