netfs: Take advantage of HashKeyPointer.
Change-Id: I80b6eb40749a0d592b69bc7030608916b1c94a35 Reviewed-on: https://review.haiku-os.org/c/1054 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
de48af7a58
commit
b6840f3610
@@ -525,11 +525,7 @@ 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);
|
||||||
#ifdef B_HAIKU_64_BIT
|
HashMap<HashKeyPointer<User*>, BMessage*> userArchives;
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user