diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-26 11:01:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-02-26 15:56:35 +0100 |
commit | 0864947e633c0c146a50e1704eabfad113641a90 (patch) | |
tree | a5e518276ca833064fd39ff5d1cece9b1e1ebd1c /sal/osl | |
parent | 9856b68c8611cafdff97355ca5fe0aae701de677 (diff) |
loplugin:simplifybool (clang-cl)
Change-Id: Ia10e08c04fb6dfc18597fcfba3fe52cf0ba7184c
Reviewed-on: https://gerrit.libreoffice.org/68377
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/w32/profile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |