netfs: Take advantage of HashKeyPointer.
Change-Id: I838d91cfa9b1b16ba9c42d62cabfe4716b49e425 Reviewed-on: https://review.haiku-os.org/c/1040 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
This commit is contained in:
parent
58852727a3
commit
279470d553
@ -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