summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-13 15:54:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-14 08:32:40 +0200
commit2a2602fd46c3eeee28b2c9af9f540f86d5579f11 (patch)
treee828507c431006a2bba3339021750944b146cb00 /svx
parentfcb945e37dc31c11bcc3195fcbe835a63bb5bf5f (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')
-rw-r--r--svx/inc/colrctrl.hxx4
-rw-r--r--svx/source/tbxctrls/colrctrl.cxx6
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx2
3 files changed, 1 insertions, 11 deletions
diff --git a/svx/inc/colrctrl.hxx b/svx/inc/colrctrl.hxx
index 4b369cf886fa..019be34863e6 100644
--- a/svx/inc/colrctrl.hxx
+++ b/svx/inc/colrctrl.hxx
@@ -72,10 +72,6 @@ private:
rtl::Reference<SvxColorValueSetData> m_xHelper;
std::unique_ptr<SvxColorValueSet_docking> xColorSet;
std::unique_ptr<weld::CustomWeld> xColorSetWin;
- sal_uInt16 nCols;
- sal_uInt16 nLines;
- long nCount;
- Size aItemSize;
void FillValueSet();
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);
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 08ee5e149baf..d099caca0aa8 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -213,7 +213,6 @@ protected:
SfxStyleFamily eStyleFamily;
int m_nMaxUserDrawFontWidth;
bool bRelease;
- bool bVisible;
Reference< XDispatchProvider > m_xDispatchProvider;
Reference< XFrame > m_xFrame;
OUString m_aCommand;
@@ -833,7 +832,6 @@ SvxStyleBox_Base::SvxStyleBox_Base(std::unique_ptr<weld::ComboBox> xWidget,
, eStyleFamily( eFamily )
, m_nMaxUserDrawFontWidth(0)
, bRelease( true )
- , bVisible(false)
, m_xDispatchProvider( rDispatchProvider )
, m_xFrame(_xFrame)
, m_aCommand( rCommand )