headers/private/kernel/util/OpenHashTable.h, Hugo's version, is a bit nicer than
Tracker's OpenHashTable.h which it should eventually replace. We've renamed the class to BOpenHashTable and changed the interface slightly so that HashTableLink became superfluous. Adapted all the code that used it. Since the OpenHashTables no longer clash, this should fix the GCC4 build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,8 +35,9 @@ struct StackFrameValues::Key {
|
||||
};
|
||||
|
||||
|
||||
struct StackFrameValues::ValueEntry : Key, HashTableLink<ValueEntry> {
|
||||
struct StackFrameValues::ValueEntry : Key {
|
||||
BVariant value;
|
||||
ValueEntry* next;
|
||||
|
||||
ValueEntry(ObjectID* variable, TypeComponentPath* path)
|
||||
:
|
||||
@@ -73,9 +74,9 @@ struct StackFrameValues::ValueEntryHashDefinition {
|
||||
return key == *value;
|
||||
}
|
||||
|
||||
HashTableLink<ValueEntry>* GetLink(ValueEntry* value) const
|
||||
ValueEntry*& GetLink(ValueEntry* value) const
|
||||
{
|
||||
return value;
|
||||
return value->next;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -172,7 +173,7 @@ StackFrameValues::_Cleanup()
|
||||
ValueEntry* entry = fValues->Clear(true);
|
||||
|
||||
while (entry != NULL) {
|
||||
ValueEntry* next = entry->fNext;
|
||||
ValueEntry* next = entry->next;
|
||||
delete entry;
|
||||
entry = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user