summaryrefslogtreecommitdiff
path: root/ipc/chromium/src/base/id_map.h
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2022-09-04 23:05:10 -0500
committerBrian Smith <brian@dbsoft.org>2022-09-04 23:05:10 -0500
commitf369fbd6f7d2b0c74d482511bb16afbfc7856d11 (patch)
tree336e03f28773c2d0cfe8c28d0b888e834bfd2008 /ipc/chromium/src/base/id_map.h
parent2db2e0fe58c8c844896541ce892695ee9b1c1452 (diff)
downloaduxp-f369fbd6f7d2b0c74d482511bb16afbfc7856d11.tar.gz
Issue #2000 - Stop using deprecated ext/hash_map.
This has been long deprecated in favor of std::unsorted_map. Since all platforms are using modern compilers now it should not be a problem to switch over to std::unsorted_map in the single place hash_map is used. This allows us to build on platforms which have removed hash_map such as FreeBSD.
Diffstat (limited to 'ipc/chromium/src/base/id_map.h')
-rw-r--r--ipc/chromium/src/base/id_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/chromium/src/base/id_map.h b/ipc/chromium/src/base/id_map.h
index 6e15d504e7..bc69b0f041 100644
--- a/ipc/chromium/src/base/id_map.h
+++ b/ipc/chromium/src/base/id_map.h
@@ -7,8 +7,8 @@
#define BASE_ID_MAP_H__
#include "base/basictypes.h"
-#include "base/hash_tables.h"
#include "base/logging.h"
+#include <unordered_map>
// This object maintains a list of IDs that can be quickly converted to
// pointers to objects. It is implemented as a hash table, optimized for
@@ -21,7 +21,7 @@
template<class T>
class IDMap {
private:
- typedef base::hash_map<int32_t, T*> HashTable;
+ typedef std::unordered_map<int32_t, T*> HashTable;
typedef typename HashTable::iterator iterator;
public: