diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 14:49:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 09:57:24 +0200 |
commit | 4250b25c6ae361359300ab6ccde27230f8e01039 (patch) | |
tree | 916a8420282928a92ede0760d696997550ae0840 /svl/source/items/itemset.cxx | |
parent | 2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff) |
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b
Reviewed-on: https://gerrit.libreoffice.org/39737
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/items/itemset.cxx')
-rw-r--r-- | svl/source/items/itemset.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 62b1ea3cb8c3..d59872fa3799 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -946,7 +946,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet ) break; } if( n & 1 ) - nSize += ( *(pWh1) - *(pWh1-1) ) + 1; + nSize += ( *pWh1 - *(pWh1-1) ) + 1; } bool bEqual = *pWh1 == *pWh2; // Also check for 0 @@ -1012,7 +1012,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet ) break; } if( n & 1 ) - nSize += ( *(pWh1) - *(pWh1-1) ) + 1; + nSize += ( *pWh1 - *(pWh1-1) ) + 1; } bool bEqual = *pWh1 == *pWh2; // Also test for 0 @@ -1222,7 +1222,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet ) break; } if( n & 1 ) - nSize += ( *(pWh1) - *(pWh1-1) ) + 1; + nSize += ( *pWh1 - *(pWh1-1) ) + 1; } bool bEqual = *pWh1 == *pWh2; // Also check for 0 @@ -1315,7 +1315,7 @@ sal_uInt16 SfxItemSet::GetWhichByPos( sal_uInt16 nPos ) const { n = ( *(pPtr+1) - *pPtr ) + 1; if( nPos < n ) - return *(pPtr)+nPos; + return *pPtr + nPos; nPos = nPos - n; pPtr += 2; } |