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); }