From 0864947e633c0c146a50e1704eabfad113641a90 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 26 Feb 2019 11:01:53 +0100 Subject: loplugin:simplifybool (clang-cl) Change-Id: Ia10e08c04fb6dfc18597fcfba3fe52cf0ba7184c Reviewed-on: https://gerrit.libreoffice.org/68377 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/osl/w32/profile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal') 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; } -- cgit