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 Jan 21, 2022
1 parent 225a20b commit b1d40eb
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 b1d40eb

Please sign in to comment.