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 )
|
void TrendlineResources::Reset( const SfxItemSet& rInAttrs )
|
||||||
{
|
{
|
||||||
const SfxPoolItem *pPoolItem = NULL;
|
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 );
|
m_bTrendLineUnique = ( aState != SFX_ITEM_DONTCARE );
|
||||||
if( aState == SFX_ITEM_SET )
|
if( aState == SFX_ITEM_SET )
|
||||||
{
|
{
|
||||||
|
@@ -151,10 +151,9 @@ sal_Bool SchAxisLabelTabPage::FillItemSet( SfxItemSet& rOutAttrs )
|
|||||||
void SchAxisLabelTabPage::Reset( const SfxItemSet& rInAttrs )
|
void SchAxisLabelTabPage::Reset( const SfxItemSet& rInAttrs )
|
||||||
{
|
{
|
||||||
const SfxPoolItem* pPoolItem = NULL;
|
const SfxPoolItem* pPoolItem = NULL;
|
||||||
SfxItemState aState = SFX_ITEM_UNKNOWN;
|
|
||||||
|
|
||||||
// show description ----------
|
// show description
|
||||||
aState = rInAttrs.GetItemState( SCHATTR_AXIS_SHOWDESCR, sal_False, &pPoolItem );
|
SfxItemState aState = rInAttrs.GetItemState( SCHATTR_AXIS_SHOWDESCR, sal_False, &pPoolItem );
|
||||||
if( aState == SFX_ITEM_DONTCARE )
|
if( aState == SFX_ITEM_DONTCARE )
|
||||||
{
|
{
|
||||||
aCbShowDescription.EnableTriState( sal_True );
|
aCbShowDescription.EnableTriState( sal_True );
|
||||||
|
@@ -60,10 +60,9 @@ sal_Bool SchLayoutTabPage::FillItemSet(SfxItemSet& rOutAttrs)
|
|||||||
|
|
||||||
if(m_pGeometryResources && m_pGeometryResources->GetSelectEntryCount())
|
if(m_pGeometryResources && m_pGeometryResources->GetSelectEntryCount())
|
||||||
{
|
{
|
||||||
long nShape=CHART_SHAPE3D_SQUARE;
|
|
||||||
long nSegs=32;
|
long nSegs=32;
|
||||||
|
|
||||||
nShape = m_pGeometryResources->GetSelectEntryPos();
|
long nShape = m_pGeometryResources->GetSelectEntryPos();
|
||||||
if(nShape==CHART_SHAPE3D_PYRAMID)
|
if(nShape==CHART_SHAPE3D_PYRAMID)
|
||||||
nSegs=4;
|
nSegs=4;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user