diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-07 12:48:13 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-07 14:01:29 +0100 |
commit | 2b39d8122d490a16b2f748f40595d74ac19acfae (patch) | |
tree | af7b70af6b1ea2ad34b02289a039a0522ff285bd /sal | |
parent | WaE: comparison between 'enum oslFileError' and 'enum osl::FileBase::RC' (diff) | |
download | core-2b39d8122d490a16b2f748f40595d74ac19acfae.tar.gz core-2b39d8122d490a16b2f748f40595d74ac19acfae.zip |
WaE: ordered comparison of pointer with integer zero
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/profile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index c95b376fd106..1a019d073263 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -375,7 +375,7 @@ sal_Bool SAL_CALL osl_flushProfile(oslProfile Profile) } pFile = pProfile->m_pFile; - if ( !( pFile != 0 && pFile->m_Handle >= 0 ) ) + if ( pFile == 0 || pFile->m_Handle == INVALID_HANDLE_VALUE ) { #ifdef TRACE_OSL_PROFILE OSL_TRACE("Out osl_flushProfile() [invalid file]"); @@ -1366,7 +1366,7 @@ static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine) { unsigned int Len = strlen(pszLine); - if ( pFile == 0 || pFile->m_Handle < 0 ) + if ( pFile == 0 || pFile->m_Handle == INVALID_HANDLE_VALUE ) { return (sal_False); } |