summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-18 09:57:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-18 15:19:04 +0200
commit5d86154f49d713dada4aaa541755076cfeefa2c6 (patch)
tree25c34f4a032526de9798e6f3a69a76d993d739db /svtools
parent469892f65d9717fcee7996a040b32d713a83b412 (diff)
loplugin:unusedfields improve search for unused collection fields
look for collection-like fields that are never added to, and are therefore effectively unused Change-Id: Id52c5500ea5e3d2436fb5915aebb86278bf2d925 Reviewed-on: https://gerrit.libreoffice.org/60661 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 27b0dd71d304..432663803437 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -1701,8 +1701,6 @@ sal_Int64 FontSizeBox::GetValueFromStringUnit(const OUString& rStr, FieldUnit eO
SvtFontSizeBox::SvtFontSizeBox(std::unique_ptr<weld::ComboBox> p)
: pFontList(nullptr)
, nSavedValue(0)
- , nMin(20)
- , nMax(9999)
, eUnit(FUNIT_POINT)
, nDecimalDigits(1)
, nRelMin(0)
@@ -1918,7 +1916,6 @@ void SvtFontSizeBox::SetRelative( bool bNewRelative )
if (bPtRelative)
{
SetDecimalDigits( 1 );
- SetRange(nPtRelMin, nPtRelMax);
SetUnit(FUNIT_POINT);
short i = nPtRelMin, n = 0;
@@ -1932,7 +1929,6 @@ void SvtFontSizeBox::SetRelative( bool bNewRelative )
else
{
SetDecimalDigits(0);
- SetRange(nRelMin, nRelMax);
SetUnit(FUNIT_PERCENT);
sal_uInt16 i = nRelMin;
@@ -1949,7 +1945,6 @@ void SvtFontSizeBox::SetRelative( bool bNewRelative )
m_xComboBox->clear();
bRelative = bPtRelative = false;
SetDecimalDigits(1);
- SetRange(20, 9999);
SetUnit(FUNIT_POINT);
if ( pFontList)
Fill( &aFontMetric, pFontList );