Skip to content

Commit

Permalink
loop fix (project-chip#13828)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored and austinh0 committed Jan 24, 2022
1 parent cdfe2d6 commit 76e17b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/platform/AttributeList.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AttributeList
{
public:
Iterator(const AttributeList<T, N> * AttributeList, int index);
T operator*() const;
const T & operator*() const;
Iterator & operator++();
bool operator!=(const Iterator & other) const;

Expand Down Expand Up @@ -114,7 +114,7 @@ inline AttributeList<T, N>::Iterator::Iterator(const AttributeList<T, N> * pAttr
{}

template <typename T, size_t N>
inline T AttributeList<T, N>::Iterator::operator*() const
inline const T & AttributeList<T, N>::Iterator::operator*() const
{
return mAttributeListPtr->operator[](mIndex);
}
Expand Down

0 comments on commit 76e17b3

Please sign in to comment.