Revert "netfs: Take advantage of HashKeyPointer."

This reverts commit 279470d553.

Reason for revert: Commited in wrong order.

Change-Id: I1163b12728f19aee4506c95512d0afdea0433362
Reviewed-on: https://review.haiku-os.org/c/1046
Reviewed-by: Stephan Aßmus <[email protected]>
This commit is contained in:
Stephan Aßmus
2019-02-13 10:50:02 +00:00
parent 279470d553
commit a0d1cbb95d
@@ -525,7 +525,11 @@ SecurityContext::Archive(BMessage* archive, bool deep) const
if (!tmpUserArchives) if (!tmpUserArchives)
return B_NO_MEMORY; return B_NO_MEMORY;
ArrayDeleter<BMessage> deleter(tmpUserArchives); ArrayDeleter<BMessage> deleter(tmpUserArchives);
HashMap<HashKeyPointer<User*>, BMessage*> userArchives; #ifdef B_HAIKU_64_BIT
HashMap<HashKey64<User*>, BMessage*> userArchives;
#else
HashMap<HashKey32<User*>, BMessage*> userArchives;
#endif
int32 i = 0; int32 i = 0;
for (UserMap::Iterator it = fUsers->GetIterator(); it.HasNext();) { for (UserMap::Iterator it = fUsers->GetIterator(); it.HasNext();) {
User* user = it.Next().value; User* user = it.Next().value;