From 3e6902c3f465daa3f6ec9ea396aac5fb27d921a5 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 4 Sep 2024 14:04:46 -0400 Subject: [PATCH] SinglyLinkedList: Rename Size to Count. So that it has the same naming as DoublyLinkedList. No functional change. It seems there aren't any users of this API in the default build at the moment. --- headers/private/kernel/util/SinglyLinkedList.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/private/kernel/util/SinglyLinkedList.h b/headers/private/kernel/util/SinglyLinkedList.h index 9598a83d97..f798e74afb 100644 --- a/headers/private/kernel/util/SinglyLinkedList.h +++ b/headers/private/kernel/util/SinglyLinkedList.h @@ -161,7 +161,7 @@ class SinglyLinkedList { inline Element* GetNext(Element* element) const; - inline int32 Size() const; + inline int32 Count() const; // O(n)! inline Iterator GetIterator() const { return Iterator(this); } @@ -300,7 +300,7 @@ SINGLY_LINKED_LIST_CLASS_NAME::GetNext(Element* element) const // Size SINGLY_LINKED_LIST_TEMPLATE_LIST int32 -SINGLY_LINKED_LIST_CLASS_NAME::Size() const +SINGLY_LINKED_LIST_CLASS_NAME::Count() const { int32 count = 0; for (Element* element = First(); element; element = GetNext(element))