summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-06-14 12:17:55 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-06-14 12:17:55 +0200
commitb226928c6d5d094359b970b64a063b243d4fc84c (patch)
tree3ec0329c0f69fc4e9b57210135d51c2006853388 /editeng
parent01a189abcd9a4ca472a74b3b2c000c9338fc2c91 (diff)
cppcheck: redundantCondition [part1]
Change-Id: I21c5340e7b5ec09248b08aa76f43acf883c56cd8
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/numitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 6b846e74491f..f99fff5f9203 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -398,7 +398,7 @@ void SvxNumberFormat::SetGraphicBrush( const SvxBrushItem* pBrushItem,
delete pGraphicBrush;
pGraphicBrush = 0;
}
- else if ( !pGraphicBrush || (pGraphicBrush && !(*pBrushItem == *pGraphicBrush)) )
+ else if ( !pGraphicBrush || !(*pBrushItem == *pGraphicBrush) )
{
delete pGraphicBrush;
pGraphicBrush = static_cast<SvxBrushItem*>(pBrushItem->Clone());