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:
Augustin Cavalier 2019-02-12 22:41:48 -05:00 committed by Stephan Aßmus
parent 58852727a3
commit 279470d553

View File

@ -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;