summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-26 11:01:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-26 15:56:35 +0100
commit0864947e633c0c146a50e1704eabfad113641a90 (patch)
treea5e518276ca833064fd39ff5d1cece9b1e1ebd1c /sal
parentthese are modal dialogs (diff)
downloadcore-0864947e633c0c146a50e1704eabfad113641a90.tar.gz
core-0864947e633c0c146a50e1704eabfad113641a90.zip
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')
-rw-r--r--sal/osl/w32/profile.cxx2
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;
}