netfs: Take advantage of HashKeyPointer.
Change-Id: I80b6eb40749a0d592b69bc7030608916b1c94a35 Reviewed-on: https://review.haiku-os.org/c/1054 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
de48af7a58
commit
b6840f3610
@ -525,11 +525,7 @@ SecurityContext::Archive(BMessage* archive, bool deep) const
|
||||
if (!tmpUserArchives)
|
||||
return B_NO_MEMORY;
|
||||
ArrayDeleter<BMessage> deleter(tmpUserArchives);
|
||||
#ifdef B_HAIKU_64_BIT
|
||||
HashMap<HashKey64<User*>, BMessage*> userArchives;
|
||||
#else
|
||||
HashMap<HashKey32<User*>, BMessage*> userArchives;
|
||||
#endif
|
||||
HashMap<HashKeyPointer<User*>, BMessage*> userArchives;
|
||||
int32 i = 0;
|
||||
for (UserMap::Iterator it = fUsers->GetIterator(); it.HasNext();) {
|
||||
User* user = it.Next().value;
|
||||
|
Loading…
Reference in New Issue
Block a user