From cb414252b8d5fcff516291ed4b9db75933e5331a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Oct 2014 08:24:48 +0200 Subject: loplugin: cstylecast Change-Id: I4aafc170895d8bab47206c7b07b4f1f6105d42d3 --- chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2/source/controller/itemsetwrapper') diff --git a/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx b/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx index 49cd67fef545..26d3038f9b76 100644 --- a/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/LegendItemConverter.cxx @@ -125,7 +125,7 @@ bool LegendItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSe const SfxPoolItem* pPoolItem = NULL; if( rInItemSet.GetItemState( SCHATTR_LEGEND_POS, true, &pPoolItem ) == SfxItemState::SET ) { - chart2::LegendPosition eNewPos = static_cast(((const SfxInt32Item*)pPoolItem)->GetValue()); + chart2::LegendPosition eNewPos = static_cast(static_cast(pPoolItem)->GetValue()); ::com::sun::star::chart::ChartLegendExpansion eExpansion = ::com::sun::star::chart::ChartLegendExpansion_HIGH; switch( eNewPos ) -- cgit