diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-09-25 21:35:20 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-09-25 22:46:10 +0300 |
commit | 49a2c136f99cf90abc94f1ce84d3c6f2be2815d0 (patch) | |
tree | d8f9f05a1b69cae953dcfb8377ac9fd5e4f0fb7b /indra/llui/llscrolllistctrl.cpp | |
parent | 37f539bdbbd83f4ceabd88b0038fd9dc1980ca32 (diff) |
viewer#2646 Fix viewer ignoring Physics Shape Type changes
asStringRef is only valid for strings
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index 445377d3a2..93bd3c6bed 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -490,12 +490,12 @@ std::vector<LLScrollListItem*> LLScrollListCtrl::getAllData() const // returns first matching item LLScrollListItem* LLScrollListCtrl::getItem(const LLSD& sd) const { - const std::string& string_val = sd.asStringRef(); + std::string string_val = sd.asString(); for (LLScrollListItem* item : mItemList) { // assumes string representation is good enough for comparison - if (item->getValue().asStringRef() == string_val) + if (item->getValue().asString() == string_val) { return item; } |