Some cppcheck cleaning in chart2/
Change-Id: I1f8fcdd78029344c735cd4364c8b081d692e2f4e
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
@@ -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 );
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user