diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-29 10:10:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-29 12:00:42 +0100 |
commit | 368f806aaa75fb80790026677e2400580536ed7a (patch) | |
tree | 8b0a7e13a15e036a90a128c7789eaf06f4026dd4 /sal | |
parent | bdfbc91ca08a9a04fc9515b0a0bf669627fcc6ed (diff) |
loplugin:unnecessaryparen (clang-cl)
Change-Id: I3a2b7ed3fdef3b77c0a052b10f88918aa616779e
Reviewed-on: https://gerrit.libreoffice.org/45469
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/file.cxx | 2 | ||||
-rw-r--r-- | sal/rtl/alloc_arena.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx index 7c0b6674c23f..158e58c54d40 100644 --- a/sal/osl/w32/file.cxx +++ b/sal/osl/w32/file.cxx @@ -253,7 +253,7 @@ oslFileError FileHandle_Impl::setPos(sal_uInt64 uPos) sal_uInt64 FileHandle_Impl::getSize() const { - LONGLONG bufend = std::max((LONGLONG)(0), m_bufptr) + m_buflen; + LONGLONG bufend = std::max((LONGLONG)0, m_bufptr) + m_buflen; return std::max(m_size, sal::static_int_cast< sal_uInt64 >(bufend)); } diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx index 373de6d51ad9..8f9c64e0919e 100644 --- a/sal/rtl/alloc_arena.cxx +++ b/sal/rtl/alloc_arena.cxx @@ -1064,7 +1064,7 @@ void SAL_CALL rtl_machdep_free( #if defined(SAL_UNX) (void) munmap(pAddr, nSize); #elif defined(SAL_W32) - (void) VirtualFree (pAddr, (SIZE_T)(0), MEM_RELEASE); + (void) VirtualFree (pAddr, (SIZE_T)0, MEM_RELEASE); #endif /* (SAL_UNX || SAL_W32) */ } |