sal/osl/w32/profile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0864947e633c0c146a50e1704eabfad113641a90 Author: Stephan Bergmann <[email protected]> AuthorDate: Tue Feb 26 11:01:53 2019 +0100 Commit: Stephan Bergmann <[email protected]> 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 <[email protected]> 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; } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
