diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-13 15:54:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-14 08:32:40 +0200 |
commit | 2a2602fd46c3eeee28b2c9af9f540f86d5579f11 (patch) | |
tree | e828507c431006a2bba3339021750944b146cb00 /svx/source/tbxctrls/colrctrl.cxx | |
parent | fcb945e37dc31c11bcc3195fcbe835a63bb5bf5f (diff) |
loplugin:unusedfields
Change-Id: I0ec89b56b339f26bb236887c904e6b5d14ceecea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94136
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/tbxctrls/colrctrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/colrctrl.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 52b8f9c7b26b..318598516f3f 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -168,9 +168,6 @@ SvxColorDockingWindow::SvxColorDockingWindow(SfxBindings* _pBindings, SfxChildWi , pColorList() , xColorSet(new SvxColorValueSet_docking(m_xBuilder->weld_scrolled_window("valuesetwin"))) , xColorSetWin(new weld::CustomWeld(*m_xBuilder, "valueset", *xColorSet)) - , nCols(20) - , nLines(1) - , nCount(0) { SetText(SvxResId(STR_COLORTABLE)); SetQuickHelpText(SvxResId(RID_SVXSTR_COLORBAR)); @@ -208,7 +205,7 @@ SvxColorDockingWindow::SvxColorDockingWindow(SfxBindings* _pBindings, SfxChildWi } } - aItemSize = xColorSet->CalcItemSizePixel(Size(SvxColorValueSet::getEntryEdgeLength(), SvxColorValueSet::getEntryEdgeLength())); + Size aItemSize = xColorSet->CalcItemSizePixel(Size(SvxColorValueSet::getEntryEdgeLength(), SvxColorValueSet::getEntryEdgeLength())); aItemSize.setWidth( aItemSize.Width() + SvxColorValueSet::getEntryEdgeLength() ); aItemSize.setWidth( aItemSize.Width() / 2 ); aItemSize.setHeight( aItemSize.Height() + SvxColorValueSet::getEntryEdgeLength() ); @@ -250,7 +247,6 @@ void SvxColorDockingWindow::FillValueSet() if( !pColorList.is() ) return; - nCount = pColorList->Count(); xColorSet->Clear(); xColorSet->addEntriesForXColorList(*pColorList, 2); |