Fix by Jack Burton

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2217 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2002-12-10 16:30:39 +00:00
parent d19f7b5dad
commit a3d1f07f83
+2 -2
View File
@@ -374,7 +374,7 @@ BList::DoForEach(bool (*func)(void *))
{ {
while ((!terminate) && (index < fItemCount)) //check terminate condition. while ((!terminate) && (index < fItemCount)) //check terminate condition.
{ {
terminate = func(fItemList[index]); //reset immediate terminator terminate = func(fObjectList[index]); //reset immediate terminator
index++; //advance along the list. index++; //advance along the list.
}; };
} }
@@ -390,7 +390,7 @@ BList::DoForEach(bool (*func)(void *, void*), void * arg)
{ {
while ((!terminate) && (index < fItemCount)) while ((!terminate) && (index < fItemCount))
{ {
terminate = func(fItemList[index], arg); terminate = func(fObjectList[index], arg);
index++; index++;
}; };
} }