toolkit: Drop always true bExpanded param for ImplContextGraphicItem

Just hard-code passing true to the base class ctor as the
ImplContextGraphicItem ctor is always called with a value
of true.

Change-Id: I5437e049daf570d693445a7431ed61f17b6dfffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206397
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-06-17 06:09:32 +02:00
parent a3253ebf8d
commit 8a9ca4fb6a
@@ -77,8 +77,10 @@ public:
class ImplContextGraphicItem : public SvLBoxContextBmp
{
public:
ImplContextGraphicItem( Image const & rI1, Image const & rI2, bool bExpanded)
: SvLBoxContextBmp(rI1, rI2, bExpanded) {}
ImplContextGraphicItem(Image const& rI1, Image const& rI2)
: SvLBoxContextBmp(rI1, rI2, true)
{
}
OUString msExpandedGraphicURL;
OUString msCollapsedGraphicURL;
@@ -226,7 +228,7 @@ UnoTreeListEntry* TreeControlPeer::createEntry( const Reference< XTreeNode >& xN
Image aImage;
UnoTreeListEntry* pEntry = new UnoTreeListEntry(xNode, this);
pEntry->AddItem(std::make_unique<ImplContextGraphicItem>(aImage, aImage, true));
pEntry->AddItem(std::make_unique<ImplContextGraphicItem>(aImage, aImage));
std::unique_ptr<UnoTreeListItem> pUnoItem(new UnoTreeListItem);