From b1d40eb423ba5c2f4bbe15ff42a2b5d1b78ba2ce Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Fri, 21 Jan 2022 15:43:52 -0500 Subject: [PATCH] loop fix (#13828) --- src/include/platform/AttributeList.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/platform/AttributeList.h b/src/include/platform/AttributeList.h index 1a1a133a0b7688..75bc34089c2ad8 100644 --- a/src/include/platform/AttributeList.h +++ b/src/include/platform/AttributeList.h @@ -37,7 +37,7 @@ class AttributeList { public: Iterator(const AttributeList * AttributeList, int index); - T operator*() const; + const T & operator*() const; Iterator & operator++(); bool operator!=(const Iterator & other) const; @@ -114,7 +114,7 @@ inline AttributeList::Iterator::Iterator(const AttributeList * pAttr {} template -inline T AttributeList::Iterator::operator*() const +inline const T & AttributeList::Iterator::operator*() const { return mAttributeListPtr->operator[](mIndex); }