Fixed two wrong cast types which broke the build over here.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8863 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-09-06 17:28:42 +00:00
parent a68b2eb2ce
commit 4bccccda2e

View File

@ -167,7 +167,7 @@ void* AbstractPointerListHelper::BinarySearch(const void* key, const void** item
low = index + 1;
} else {
// key == item
return static_cast<void*>(item);
return const_cast<void *>(item);
}
}
// item not found
@ -380,7 +380,7 @@ public:
int Compare(const void *arg, const void *item) {
// need to adapt arguments and return value
return -fPredicate(item, static_cast<void*>(arg));
return -fPredicate(item, const_cast<void *>(arg));
}
private: