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
This commit is contained in:
Stefano Ceccherini
2003-01-02 11:14:33 +00:00
parent d390baeede
commit 005069f4e1
+8 -3
View File
@@ -26,12 +26,16 @@
// Not thread safe. // Not thread safe.
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#include "List.h"
// Standard Includes -----------------------------------------------------------
#include <List.h>
// System Includes -------------------------------------------------------------
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
// helper function // helper function
static inline static inline
void void
@@ -136,7 +140,7 @@ BList::AddList(BList *list, int32 index)
bool bool
BList::AddList(BList *list) BList::AddList(BList *list)
{ {
bool result = (list); bool result = (list != NULL);
if (result && list->fItemCount > 0) { if (result && list->fItemCount > 0) {
int32 index = fItemCount; int32 index = fItemCount;
int32 count = list->fItemCount; int32 count = list->fItemCount;
@@ -381,9 +385,10 @@ BList::DoForEach(bool (*func)(void *))
} }
//same as above, except this function takes an argument.
void void
BList::DoForEach(bool (*func)(void *, void*), void * arg) BList::DoForEach(bool (*func)(void *, void*), void * arg)
//same as above, except this function takes an argument.
{ {
bool terminate = false; int32 index = 0; bool terminate = false; int32 index = 0;
if (func != NULL) if (func != NULL)