summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-02-03 10:05:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-03 10:53:01 +0100
commit0528012fd0dc4b93645ef7790b0db9d1cecbae66 (patch)
treee3adb8f0200fc95c06f62205b346244c79ae88ca /svtools
parentf612839ed9200a3900ae5c3a2e12beccfa37b11e (diff)
loplugin:constantparam
Change-Id: If2dee122bf07dc179fd8f6e766442ec1891a5f3d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87845 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueset.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index d30025e1d51e..669a9682e9c6 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -1441,12 +1441,11 @@ void ValueSet::Select()
}
void ValueSet::InsertItem( sal_uInt16 nItemId, const Image& rImage,
- const OUString& rText, size_t nPos,
- bool bShowLegend )
+ const OUString& rText, size_t nPos )
{
std::unique_ptr<ValueSetItem> pItem(new ValueSetItem( *this ));
pItem->mnId = nItemId;
- pItem->meType = bShowLegend ? VALUESETITEM_IMAGE_AND_TEXT : VALUESETITEM_IMAGE;
+ pItem->meType = VALUESETITEM_IMAGE;
pItem->maImage = rImage;
pItem->maText = rText;
ImplInsertItem( std::move(pItem), nPos );