diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-06-14 12:17:55 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-06-14 12:17:55 +0200 |
commit | b226928c6d5d094359b970b64a063b243d4fc84c (patch) | |
tree | 3ec0329c0f69fc4e9b57210135d51c2006853388 /chart2/source/controller/itemsetwrapper | |
parent | 01a189abcd9a4ca472a74b3b2c000c9338fc2c91 (diff) |
cppcheck: redundantCondition [part1]
Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
Diffstat (limited to 'chart2/source/controller/itemsetwrapper')
4 files changed, 4 insertions, 8 deletions
diff --git a/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx b/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx index 0c2efa7fb1ad..a56579c480d7 100644 --- a/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx @@ -885,8 +885,7 @@ bool AxisItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet bool bPropExisted = ( GetPropertySet()->getPropertyValue( "TextRotation" ) >>= fOldVal ); - if( ! bPropExisted || - ( bPropExisted && fOldVal != fVal )) + if( ! bPropExisted || fOldVal != fVal ) { GetPropertySet()->setPropertyValue( "TextRotation" , uno::makeAny( fVal )); bChangedOtherwise = true; diff --git a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx index 74ebe3b0c714..67f865cb4d62 100644 --- a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx @@ -505,8 +505,7 @@ bool DataPointItemConverter::ApplySpecialItem( bool bPropExisted = ( GetPropertySet()->getPropertyValue( "TextRotation" ) >>= fOldValue ); - if( ! bPropExisted || - ( bPropExisted && fOldValue != fValue )) + if( ! bPropExisted || fOldValue != fValue ) { GetPropertySet()->setPropertyValue( "TextRotation" , uno::makeAny( fValue )); bChanged = true; diff --git a/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx b/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx index fe94df3f3dc2..05bc7fa9c5b3 100644 --- a/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx @@ -459,8 +459,7 @@ bool TextLabelItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxIte bool bPropExisted = (GetPropertySet()->getPropertyValue("TextRotation") >>= fOldValue); - if (!bPropExisted || - (bPropExisted && fOldValue != fValue)) + if (!bPropExisted || fOldValue != fValue) { GetPropertySet()->setPropertyValue("TextRotation", uno::makeAny(fValue)); bChanged = true; diff --git a/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx b/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx index 613193b9af95..8750cd1d5b77 100644 --- a/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/TitleItemConverter.cxx @@ -186,8 +186,7 @@ bool TitleItemConverter::ApplySpecialItem( bool bPropExisted = ( GetPropertySet()->getPropertyValue( "TextRotation" ) >>= fOldVal ); - if( ! bPropExisted || - ( bPropExisted && fOldVal != fVal )) + if( ! bPropExisted || fOldVal != fVal ) { GetPropertySet()->setPropertyValue( "TextRotation" , uno::makeAny( fVal )); bChanged = true; |