diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 10:22:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-28 10:00:01 +0100 |
commit | ae25d5d3a333f58723eb9449cd3694cc0b80b3a6 (patch) | |
tree | ea2e7aa8375bb5142c7a67bbf4def4cc06269037 /dbaccess | |
parent | 6db4b97ee12805ce993bd7663a0613b4b4f25587 (diff) |
loplugin:unusedfields
Change-Id: Iffbb4e7107a0b1ae35c879c193a9ec209addf453
Reviewed-on: https://gerrit.libreoffice.org/64144
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/dlgsize.cxx | 8 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/dlgsize.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/ui/dlg/dlgsize.cxx b/dbaccess/source/ui/dlg/dlgsize.cxx index 9ed623fc8003..aca0710c5fc7 100644 --- a/dbaccess/source/ui/dlg/dlgsize.cxx +++ b/dbaccess/source/ui/dlg/dlgsize.cxx @@ -30,20 +30,20 @@ DlgSize::DlgSize(weld::Window* pParent, sal_Int32 nVal, bool bRow, sal_Int32 _nA : GenericDialogController(pParent, bRow ? OUString("dbaccess/ui/rowheightdialog.ui") : OUString("dbaccess/ui/colwidthdialog.ui"), bRow ? OString("RowHeightDialog") : OString("ColWidthDialog")) , m_nPrevValue(nVal) - , m_nStandard(bRow ? DEF_ROW_HEIGHT : DEF_COL_WIDTH) , m_xMF_VALUE(m_xBuilder->weld_metric_spin_button("value", FieldUnit::CM)) , m_xCB_STANDARD(m_xBuilder->weld_check_button("automatic")) { + sal_Int32 nStandard(bRow ? DEF_ROW_HEIGHT : DEF_COL_WIDTH); if ( _nAlternativeStandard > 0 ) - m_nStandard = _nAlternativeStandard; + nStandard = _nAlternativeStandard; m_xCB_STANDARD->connect_toggled(LINK(this,DlgSize,CbClickHdl)); bool bDefault = -1 == nVal; m_xCB_STANDARD->set_active(bDefault); if (bDefault) { - SetValue(m_nStandard); - m_nPrevValue = m_nStandard; + SetValue(nStandard); + m_nPrevValue = nStandard; } CbClickHdl(*m_xCB_STANDARD); } diff --git a/dbaccess/source/ui/inc/dlgsize.hxx b/dbaccess/source/ui/inc/dlgsize.hxx index 6e72490945fb..d71f0ff1c649 100644 --- a/dbaccess/source/ui/inc/dlgsize.hxx +++ b/dbaccess/source/ui/inc/dlgsize.hxx @@ -27,7 +27,7 @@ namespace dbaui class DlgSize final : public weld::GenericDialogController { private: - sal_Int32 m_nPrevValue, m_nStandard; + sal_Int32 m_nPrevValue; void SetValue( sal_Int32 nVal ); DECL_LINK(CbClickHdl, weld::ToggleButton&, void); |