diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 08:32:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 11:08:48 +0200 |
commit | 4b2262ab5b10f334f1984fec84d2978db81c58f1 (patch) | |
tree | de56663eba6ed2edf7a26127339dd8563fdf47be /sal/rtl | |
parent | ec1de6895d84fbe4f2d5fb7135a59a918138d970 (diff) |
new loplugin unnecessaryparen
Change-Id: Ic883a07b30069ca6342d7521c8ad890f4326f0ec
Reviewed-on: https://gerrit.libreoffice.org/39549
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/alloc_arena.cxx | 2 | ||||
-rw-r--r-- | sal/rtl/strtmpl.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx index 42cd84433ba2..882652bc91e2 100644 --- a/sal/rtl/alloc_arena.cxx +++ b/sal/rtl/alloc_arena.cxx @@ -1045,7 +1045,7 @@ SAL_CALL rtl_arena_free ( prev = segment->m_sprev; /* entire span free when prev is a span, and next is either a span or a list head */ - if (((prev->m_type == RTL_ARENA_SEGMENT_TYPE_SPAN)) && + if ((prev->m_type == RTL_ARENA_SEGMENT_TYPE_SPAN) && ((next->m_type == RTL_ARENA_SEGMENT_TYPE_SPAN) || (next->m_type == RTL_ARENA_SEGMENT_TYPE_HEAD)) ) { diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx index 60712731e186..62bb76ddfdd1 100644 --- a/sal/rtl/strtmpl.cxx +++ b/sal/rtl/strtmpl.cxx @@ -101,8 +101,8 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( compare )( const IMPL_RTL_STRCODE* pStr1, else { sal_Int32 nRet; - while ( ((nRet = ((sal_Int32)(IMPL_RTL_USTRCODE(*pStr1)))- - ((sal_Int32)(IMPL_RTL_USTRCODE(*pStr2)))) == 0) && + while ( ((nRet = ((sal_Int32)IMPL_RTL_USTRCODE(*pStr1))- + ((sal_Int32)IMPL_RTL_USTRCODE(*pStr2))) == 0) && *pStr2 ) { pStr1++; @@ -148,8 +148,8 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( compare_WithLength )( const IMPL_RTL_STRCOD while( (--nCount >= 0) && (*++pStr1 == *++pStr2) ) ; if( nCount >= 0 ) - nRet = ((sal_Int32)(IMPL_RTL_USTRCODE( *pStr1 ))) - - ((sal_Int32)(IMPL_RTL_USTRCODE( *pStr2 ))); + nRet = ((sal_Int32)IMPL_RTL_USTRCODE( *pStr1 )) + - ((sal_Int32)IMPL_RTL_USTRCODE( *pStr2 )); return nRet; } @@ -193,8 +193,8 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( shortenedCompare_WithLength )( const IMPL_R while ( (nShortenedLength > 0) && (pStr1 < pStr1End) && (pStr2 < pStr2End) ) { - nRet = ((sal_Int32)(IMPL_RTL_USTRCODE( *pStr1 )))- - ((sal_Int32)(IMPL_RTL_USTRCODE( *pStr2 ))); + nRet = ((sal_Int32)IMPL_RTL_USTRCODE( *pStr1 ))- + ((sal_Int32)IMPL_RTL_USTRCODE( *pStr2 )); if ( nRet ) return nRet; @@ -227,8 +227,8 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( reverseCompare_WithLength )( const IMPL_RTL { pStr1Run--; pStr2Run--; - nRet = ((sal_Int32)(IMPL_RTL_USTRCODE( *pStr1Run )))- - ((sal_Int32)(IMPL_RTL_USTRCODE( *pStr2Run ))); + nRet = ((sal_Int32)IMPL_RTL_USTRCODE( *pStr1Run ))- + ((sal_Int32)IMPL_RTL_USTRCODE( *pStr2Run )); if ( nRet ) return nRet; } |