vcl: Pass SvLBoxItem::Paint's SvVieweDataEntry param by ref

... instead of by pointer.

This makes clear it's always non-null.

Change-Id: Iea22c33171572eec0533550293a793372d889ee9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211569
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-09-29 19:40:29 +02:00
parent 6296615b8d
commit ec99b899d4
8 changed files with 24 additions and 23 deletions
@@ -122,8 +122,9 @@ public:
void SetImage( const Image& rImage );
const OUString& GetGraphicURL() const { return maGraphicURL;}
void SetGraphicURL( const OUString& rGraphicURL );
virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev,
vcl::RenderContext& rRenderContext, const SvViewDataEntry& rView,
const SvTreeListEntry& rEntry) override;
std::unique_ptr<SvLBoxItem> Clone( SvLBoxItem const * pSource ) const override;
private:
@@ -1467,8 +1468,9 @@ UnoTreeListItem::UnoTreeListItem()
{
}
void UnoTreeListItem::Paint(
const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext, const SvViewDataEntry* /*pView*/, const SvTreeListEntry& rEntry)
void UnoTreeListItem::Paint(const Point& rPos, SvTreeListBox& rDev,
vcl::RenderContext& rRenderContext, const SvViewDataEntry& /*rView*/,
const SvTreeListEntry& rEntry)
{
Point aPos(rPos);
Size aSize(GetWidth(rDev, rEntry), GetHeight(rDev, rEntry));