From 73dd23d1a87f579f38f9f99a80674d1faebcd1db Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 9 Dec 2023 02:09:42 +0100 Subject: [PATCH] Prevent unnecessary copy --- indra/newview/llinventorylistitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llinventorylistitem.cpp b/indra/newview/llinventorylistitem.cpp index 6c3842ce54..1620257d33 100644 --- a/indra/newview/llinventorylistitem.cpp +++ b/indra/newview/llinventorylistitem.cpp @@ -422,7 +422,7 @@ void LLPanelInventoryListItemBase::setTitle(const std::string& title, BOOL LLPanelInventoryListItemBase::handleToolTip( S32 x, S32 y, MASK mask) { - LLRect text_box_rect = mTitleCtrl->getRect(); + const LLRect& text_box_rect = mTitleCtrl->getRect(); // Make inventory thumbnail tooltips work with inventory lists static LLCachedControl showInventoryThumbnailTooltips(gSavedSettings, "FSShowInventoryThumbnailTooltips");