summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-29 10:20:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-29 12:23:50 +0200
commitdb3b0ddbe0f016268c21eebb0146be87dc738efc (patch)
treea608d503f44a2c0b13feb086150a5ffe0e03e3d6 /framework
parentb3057b7944dc52cc2ee3c57f44d4265c625e8dad (diff)
loplugin:unusedfields
Change-Id: Ia0f517fba3a0660b64c97f426cc2cdfbbcd0ebad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97391 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/uielement/spinfieldtoolbarcontroller.hxx4
-rw-r--r--framework/source/uielement/spinfieldtoolbarcontroller.cxx4
2 files changed, 1 insertions, 7 deletions
diff --git a/framework/inc/uielement/spinfieldtoolbarcontroller.hxx b/framework/inc/uielement/spinfieldtoolbarcontroller.hxx
index 8085c68c1cbf..beb95049a206 100644
--- a/framework/inc/uielement/spinfieldtoolbarcontroller.hxx
+++ b/framework/inc/uielement/spinfieldtoolbarcontroller.hxx
@@ -60,9 +60,7 @@ class SpinfieldToolbarController final : public ComplexToolbarController
bool impl_getValue( const css::uno::Any& rAny, sal_Int32& nValue, double& fValue, bool& bFloat );
- bool m_bFloat,
- m_bMaxSet,
- m_bMinSet;
+ bool m_bFloat;
double m_nMax;
double m_nMin;
double m_nValue;
diff --git a/framework/source/uielement/spinfieldtoolbarcontroller.cxx b/framework/source/uielement/spinfieldtoolbarcontroller.cxx
index 6747b21ece89..04de7c1a7db5 100644
--- a/framework/source/uielement/spinfieldtoolbarcontroller.cxx
+++ b/framework/source/uielement/spinfieldtoolbarcontroller.cxx
@@ -199,8 +199,6 @@ SpinfieldToolbarController::SpinfieldToolbarController(
const OUString& aCommand ) :
ComplexToolbarController( rxContext, rFrame, pToolbar, nID, aCommand )
, m_bFloat( false )
- , m_bMaxSet( false )
- , m_bMinSet( false )
, m_nMax( 0.0 )
, m_nMin( 0.0 )
, m_nValue( 0.0 )
@@ -402,13 +400,11 @@ void SpinfieldToolbarController::executeControlCommand( const css::frame::Contro
{
m_nMax = aMax.toDouble();
m_pSpinfieldControl->set_max(m_nMax);
- m_bMaxSet = true;
}
if ( !aMin.isEmpty() )
{
m_nMin = aMin.toDouble();
m_pSpinfieldControl->set_min(m_nMin);
- m_bMinSet = true;
}
if ( !aStep.isEmpty() )
{