Patch by kaliber to fix some compiling errors with clang. Removed the #include <iostream> part, but otherwise not modified.

See http://clang.llvm.org/compatibility.html#c++ why it is needed. Note that HashMap.h Key and Value are typenames as well.
Afaict this is correctly done, builds and runs on gcc4. This fixes #5892.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Holmqvist
2010-07-17 10:33:24 +00:00
parent e5ea208d71
commit a636d1e365
4 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -143,10 +143,10 @@ private:
previous = HashTable::_Link(previous));
if (previous) {
_Link(value) = _Link(previous);
_Link(previous) = value;
HashTable::_Link(value) = HashTable::_Link(previous);
HashTable::_Link(previous) = value;
} else {
_Link(value) = table[index];
HashTable::_Link(value) = table[index];
table[index] = value;
}
}
@@ -165,7 +165,7 @@ private:
for (size_t i = 0; i < HashTable::fTableSize; i++) {
ValueType *bucket = HashTable::fTable[i];
while (bucket) {
ValueType *next = _Link(bucket);
ValueType *next = HashTable::_Link(bucket);
_Insert(newTable, newSize, bucket);
bucket = next;
}