diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-15 18:28:02 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-15 18:28:02 +0100 |
commit | 3e49d72847c78e9731f52ae2dd5013fe7ab4a2af (patch) | |
tree | 4f3d962e13b7fcce0df857204aaf8e179cc45b1d | |
parent | 255528baadeb2c71b138a58c67937a0e548004b1 (diff) |
Some cppcheck cleaning in chart2/
Change-Id: I1f8fcdd78029344c735cd4364c8b081d692e2f4e
-rw-r--r-- | chart2/source/controller/dialogs/res_Trendline.cxx | 3 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/tp_AxisLabel.cxx | 5 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/tp_PointGeometry.cxx | 3 |
3 files changed, 4 insertions, 7 deletions
diff --git a/chart2/source/controller/dialogs/res_Trendline.cxx b/chart2/source/controller/dialogs/res_Trendline.cxx index 7d3fbee10e0f..1be6e34d125a 100644 --- a/chart2/source/controller/dialogs/res_Trendline.cxx +++ b/chart2/source/controller/dialogs/res_Trendline.cxx @@ -171,9 +171,8 @@ IMPL_LINK( TrendlineResources, SelectTrendLine, RadioButton *, pRadioButton ) void TrendlineResources::Reset( const SfxItemSet& rInAttrs ) { const SfxPoolItem *pPoolItem = NULL; - SfxItemState aState = SFX_ITEM_UNKNOWN; - aState = rInAttrs.GetItemState( SCHATTR_REGRESSION_TYPE, sal_True, &pPoolItem ); + SfxItemState aState = rInAttrs.GetItemState( SCHATTR_REGRESSION_TYPE, sal_True, &pPoolItem ); m_bTrendLineUnique = ( aState != SFX_ITEM_DONTCARE ); if( aState == SFX_ITEM_SET ) { diff --git a/chart2/source/controller/dialogs/tp_AxisLabel.cxx b/chart2/source/controller/dialogs/tp_AxisLabel.cxx index 3e87bd5a9014..991d2a7d0adc 100644 --- a/chart2/source/controller/dialogs/tp_AxisLabel.cxx +++ b/chart2/source/controller/dialogs/tp_AxisLabel.cxx @@ -151,10 +151,9 @@ sal_Bool SchAxisLabelTabPage::FillItemSet( SfxItemSet& rOutAttrs ) void SchAxisLabelTabPage::Reset( const SfxItemSet& rInAttrs ) { const SfxPoolItem* pPoolItem = NULL; - SfxItemState aState = SFX_ITEM_UNKNOWN; - // show description ---------- - aState = rInAttrs.GetItemState( SCHATTR_AXIS_SHOWDESCR, sal_False, &pPoolItem ); + // show description + SfxItemState aState = rInAttrs.GetItemState( SCHATTR_AXIS_SHOWDESCR, sal_False, &pPoolItem ); if( aState == SFX_ITEM_DONTCARE ) { aCbShowDescription.EnableTriState( sal_True ); diff --git a/chart2/source/controller/dialogs/tp_PointGeometry.cxx b/chart2/source/controller/dialogs/tp_PointGeometry.cxx index 645ddc4e90f0..35a021ccefaf 100644 --- a/chart2/source/controller/dialogs/tp_PointGeometry.cxx +++ b/chart2/source/controller/dialogs/tp_PointGeometry.cxx @@ -60,10 +60,9 @@ sal_Bool SchLayoutTabPage::FillItemSet(SfxItemSet& rOutAttrs) if(m_pGeometryResources && m_pGeometryResources->GetSelectEntryCount()) { - long nShape=CHART_SHAPE3D_SQUARE; long nSegs=32; - nShape = m_pGeometryResources->GetSelectEntryPos(); + long nShape = m_pGeometryResources->GetSelectEntryPos(); if(nShape==CHART_SHAPE3D_PYRAMID) nSegs=4; |