summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 08:48:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-17 08:25:06 +0200
commit16690220ed6e68f2e9674a09b5008f38c5e6ed8d (patch)
tree2f830b7ac23f136585e7dc4adf5d456f4995cc99 /chart2
parent86d70dc840b88ed827d6d8febaf512264009951d (diff)
loplugin:singlevalfields
tighten up the handling of binary operators Change-Id: I262ec57bf7142fa094d240738150a94d83fd15ee Reviewed-on: https://gerrit.libreoffice.org/61777 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/dlg_CreationWizard.cxx9
-rw-r--r--chart2/source/controller/inc/SeriesOptionsItemConverter.hxx1
-rw-r--r--chart2/source/controller/inc/dlg_CreationWizard.hxx2
-rw-r--r--chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx3
-rw-r--r--chart2/source/view/charttypes/BubbleChart.cxx3
-rw-r--r--chart2/source/view/charttypes/BubbleChart.hxx2
6 files changed, 5 insertions, 15 deletions
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
index 9967c6123a76..2b7ea4405fda 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
@@ -50,7 +50,6 @@ CreationWizard::CreationWizard(vcl::Window* pParent, const uno::Reference<frame:
, m_xChartModel(xChartModel,uno::UNO_QUERY)
, m_xComponentContext(xContext)
, m_pTemplateProvider(nullptr)
- , m_nLastState(STATE_LAST)
, m_aTimerTriggeredControllerLock(xChartModel)
, m_bCanTravel(true)
{
@@ -140,18 +139,18 @@ svt::WizardTypes::WizardState CreationWizard::determineNextState( WizardState nC
{
if( !m_bCanTravel )
return WZS_INVALID_STATE;
- if( nCurrentState == m_nLastState )
+ if( nCurrentState == STATE_LAST )
return WZS_INVALID_STATE;
svt::WizardTypes::WizardState nNextState = nCurrentState + 1;
- while( !isStateEnabled( nNextState ) && nNextState <= m_nLastState )
+ while( !isStateEnabled( nNextState ) && nNextState <= STATE_LAST )
++nNextState;
- return (nNextState==m_nLastState+1) ? WZS_INVALID_STATE : nNextState;
+ return (nNextState==STATE_LAST+1) ? WZS_INVALID_STATE : nNextState;
}
void CreationWizard::enterState(WizardState nState)
{
m_aTimerTriggeredControllerLock.startTimer();
enableButtons( WizardButtonFlags::PREVIOUS, nState > STATE_FIRST );
- enableButtons( WizardButtonFlags::NEXT, nState < m_nLastState );
+ enableButtons( WizardButtonFlags::NEXT, nState < STATE_LAST );
if( isStateEnabled( nState ))
svt::RoadmapWizard::enterState(nState);
}
diff --git a/chart2/source/controller/inc/SeriesOptionsItemConverter.hxx b/chart2/source/controller/inc/SeriesOptionsItemConverter.hxx
index 2181d9165eb9..ad8fd31cfd20 100644
--- a/chart2/source/controller/inc/SeriesOptionsItemConverter.hxx
+++ b/chart2/source/controller/inc/SeriesOptionsItemConverter.hxx
@@ -62,7 +62,6 @@ private:
bool m_bSupportingAxisSideBySide;
bool m_bGroupBarsPerAxis;
- sal_Int32 m_nAllSeriesAxisIndex;
bool m_bSupportingStartingAngle;
sal_Int32 m_nStartingAngle;
diff --git a/chart2/source/controller/inc/dlg_CreationWizard.hxx b/chart2/source/controller/inc/dlg_CreationWizard.hxx
index 732968fde79f..b9ddfef66896 100644
--- a/chart2/source/controller/inc/dlg_CreationWizard.hxx
+++ b/chart2/source/controller/inc/dlg_CreationWizard.hxx
@@ -65,8 +65,6 @@ private:
ChartTypeTemplateProvider* m_pTemplateProvider;
std::unique_ptr<DialogModel> m_pDialogModel;
- WizardState m_nLastState;
-
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock;
bool m_bCanTravel;
diff --git a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
index 3d195ad2bf60..7b98478e75b2 100644
--- a/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/SeriesOptionsItemConverter.cxx
@@ -67,7 +67,6 @@ SeriesOptionsItemConverter::SeriesOptionsItemConverter(
, m_bConnectBars(false)
, m_bSupportingAxisSideBySide(false)
, m_bGroupBarsPerAxis(true)
- , m_nAllSeriesAxisIndex(-1)
, m_bSupportingStartingAngle(false)
, m_nStartingAngle(90)
, m_bClockwise(false)
@@ -393,8 +392,6 @@ void SeriesOptionsItemConverter::FillSpecialItem(
}
case SCHATTR_AXIS_FOR_ALL_SERIES:
{
- if( m_nAllSeriesAxisIndex != - 1)
- rOutItemSet.Put( SfxInt32Item(nWhichId, m_nAllSeriesAxisIndex));
break;
}
case SCHATTR_STARTING_ANGLE:
diff --git a/chart2/source/view/charttypes/BubbleChart.cxx b/chart2/source/view/charttypes/BubbleChart.cxx
index f8c66bce3cdd..ee3b0cc38e3e 100644
--- a/chart2/source/view/charttypes/BubbleChart.cxx
+++ b/chart2/source/view/charttypes/BubbleChart.cxx
@@ -49,7 +49,6 @@ using namespace ::com::sun::star::chart2;
BubbleChart::BubbleChart( const uno::Reference<XChartType>& xChartTypeModel
, sal_Int32 nDimensionCount )
: VSeriesPlotter( xChartTypeModel, nDimensionCount, false )
- , m_fBubbleSizeScaling(1.0)
, m_fMaxLogicBubbleSize( 0.0 )
, m_fBubbleSizeFactorToScreen( 1.0 )
{
@@ -121,7 +120,7 @@ drawing::Direction3D BubbleChart::transformToScreenBubbleSize( double fLogicSize
double fMaxRadius = sqrt( fMaxSize / F_PI );
double fRaduis = sqrt( fLogicSize / F_PI );
- aRet.DirectionX = m_fBubbleSizeScaling * m_fBubbleSizeFactorToScreen * fRaduis / fMaxRadius;
+ aRet.DirectionX = m_fBubbleSizeFactorToScreen * fRaduis / fMaxRadius;
aRet.DirectionY = aRet.DirectionX;
return aRet;
diff --git a/chart2/source/view/charttypes/BubbleChart.hxx b/chart2/source/view/charttypes/BubbleChart.hxx
index b2b28267f675..a4e9f7a75621 100644
--- a/chart2/source/view/charttypes/BubbleChart.hxx
+++ b/chart2/source/view/charttypes/BubbleChart.hxx
@@ -53,8 +53,6 @@ private: //methods
private: //member
- double m_fBubbleSizeScaling;//input parameter
-
double m_fMaxLogicBubbleSize;//calculated values
double m_fBubbleSizeFactorToScreen;//calculated values
};