From 8a9ca4fb6aa52b48d2cfef745fcd94da199ce7fb Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 11 Jun 2026 19:40:18 +0200 Subject: [PATCH] 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 --- toolkit/source/controls/tree/treecontrolpeer.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/toolkit/source/controls/tree/treecontrolpeer.cxx b/toolkit/source/controls/tree/treecontrolpeer.cxx index 53c0f97abf5c..0db149236231 100644 --- a/toolkit/source/controls/tree/treecontrolpeer.cxx +++ b/toolkit/source/controls/tree/treecontrolpeer.cxx @@ -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(aImage, aImage, true)); + pEntry->AddItem(std::make_unique(aImage, aImage)); std::unique_ptr pUnoItem(new UnoTreeListItem);