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