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:
parent
a68b2eb2ce
commit
4bccccda2e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user