diff --git a/src/core/common/linked_list.hpp b/src/core/common/linked_list.hpp index 1e4ea45c2..5ea05fb54 100644 --- a/src/core/common/linked_list.hpp +++ b/src/core/common/linked_list.hpp @@ -412,10 +412,10 @@ public: * @returns A pointer to the matching entry if one is found, or nullptr if no matching entry was found. * */ - template + template const Type *FindMatching(const Type * aBegin, const Type * aEnd, - const Inidcator &aIndicator, + const Indicator &aIndicator, const Type *& aPrevEntry) const { const Type *entry; @@ -453,8 +453,8 @@ public: * @returns A pointer to the matching entry if one is found, or nullptr if no matching entry was found. * */ - template - Type *FindMatching(const Type *aBegin, const Type *aEnd, const Inidcator &aIndicator, Type *&aPrevEntry) + template + Type *FindMatching(const Type *aBegin, const Type *aEnd, const Indicator &aIndicator, Type *&aPrevEntry) { return const_cast(FindMatching(aBegin, aEnd, aIndicator, const_cast(aPrevEntry))); } @@ -476,7 +476,7 @@ public: * @returns A pointer to the matching entry if one is found, or nullptr if no matching entry was found. * */ - template const Type *FindMatching(const Inidcator &aIndicator, const Type *&aPrevEntry) const + template const Type *FindMatching(const Indicator &aIndicator, const Type *&aPrevEntry) const { return FindMatching(mHead, nullptr, aIndicator, aPrevEntry); } @@ -499,7 +499,7 @@ public: * @returns A pointer to the matching entry if one is found, or nullptr if no matching entry was found. * */ - template Type *FindMatching(const Inidcator &aIndicator, Type *&aPrevEntry) + template Type *FindMatching(const Indicator &aIndicator, Type *&aPrevEntry) { return const_cast( const_cast(this)->FindMatching(aIndicator, const_cast(aPrevEntry)));