From 005069f4e1863ee3c97ad86879bb13a0713070db Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 2 Jan 2003 11:14:33 +0000 Subject: [PATCH] Changed a "" include to a <> one. Some cosmetic changes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2347 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/support/List.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/kits/support/List.cpp b/src/kits/support/List.cpp index dcd6c88614..a6b069b493 100644 --- a/src/kits/support/List.cpp +++ b/src/kits/support/List.cpp @@ -26,12 +26,16 @@ // Not thread safe. //------------------------------------------------------------------------------ -#include "List.h" +// Standard Includes ----------------------------------------------------------- +#include + +// System Includes ------------------------------------------------------------- #include #include #include + // helper function static inline void @@ -136,7 +140,7 @@ BList::AddList(BList *list, int32 index) bool BList::AddList(BList *list) { - bool result = (list); + bool result = (list != NULL); if (result && list->fItemCount > 0) { int32 index = fItemCount; int32 count = list->fItemCount; @@ -381,9 +385,10 @@ BList::DoForEach(bool (*func)(void *)) } + +//same as above, except this function takes an argument. void BList::DoForEach(bool (*func)(void *, void*), void * arg) -//same as above, except this function takes an argument. { bool terminate = false; int32 index = 0; if (func != NULL)