diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/TreeNode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/TreeNode.h b/Userland/Libraries/LibWeb/TreeNode.h index 8a9cc61bb8..038bab50a3 100644 --- a/Userland/Libraries/LibWeb/TreeNode.h +++ b/Userland/Libraries/LibWeb/TreeNode.h @@ -56,9 +56,9 @@ public: const T* first_child() const { return m_first_child; } const T* last_child() const { return m_last_child; } - int child_count() const + size_t child_count() const { - int count = 0; + size_t count = 0; for (auto* child = first_child(); child; child = child->next_sibling()) ++count; return count; |