summaryrefslogtreecommitdiff
path: root/cui/source/options/cfgchart.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/cfgchart.cxx')
-rw-r--r--cui/source/options/cfgchart.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/cui/source/options/cfgchart.cxx b/cui/source/options/cfgchart.cxx
index 5641687fa94e..1aacff5a6395 100644
--- a/cui/source/options/cfgchart.cxx
+++ b/cui/source/options/cfgchart.cxx
@@ -275,13 +275,7 @@ bool SvxChartColorTableItem::operator==( const SfxPoolItem& rAttr ) const
{
assert(SfxPoolItem::operator==(rAttr));
- const SvxChartColorTableItem * rCTItem( dynamic_cast<const SvxChartColorTableItem * >( & rAttr ));
- if( rCTItem )
- {
- return (m_aColorTable == rCTItem->GetColorList());
- }
-
- return false;
+ return static_cast<const SvxChartColorTableItem & >( rAttr ).m_aColorTable == m_aColorTable;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */