diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-10 19:00:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 09:15:42 +0200 |
commit | 2da435922f9c1fcf52eb0c1eb3d6f73581e9f793 (patch) | |
tree | 3d6fef2b96557a76b35eeae48f2df10a0a0511c5 /svtools | |
parent | 7823684cb6fbe752dc64300799c5d102f61e0b70 (diff) |
loplugin:constantparam
Change-Id: Ia11bf93768d5f722b7fe62df15f24809cb7e7f04
Reviewed-on: https://gerrit.libreoffice.org/60280
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 827dce66ee99..f66bbaca742b 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -3730,12 +3730,11 @@ Size SvtValueSet::CalcWindowSizePixel( const Size& rItemSize, sal_uInt16 nDesire } void SvtValueSet::InsertItem( sal_uInt16 nItemId, const Image& rImage, - const OUString& rText, size_t nPos, - bool bShowLegend ) + const OUString& rText, size_t nPos ) { SvtValueSetItem* pItem = new SvtValueSetItem( *this ); pItem->mnId = nItemId; - pItem->meType = bShowLegend ? VALUESETITEM_IMAGE_AND_TEXT : VALUESETITEM_IMAGE; + pItem->meType = VALUESETITEM_IMAGE; pItem->maImage = rImage; pItem->maText = rText; ImplInsertItem( pItem, nPos ); |