diff options
author | Brian Smith <brian@dbsoft.org> | 2022-09-04 23:05:10 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2022-09-04 23:05:10 -0500 |
commit | f369fbd6f7d2b0c74d482511bb16afbfc7856d11 (patch) | |
tree | 336e03f28773c2d0cfe8c28d0b888e834bfd2008 /ipc/chromium/src/base/id_map.h | |
parent | 2db2e0fe58c8c844896541ce892695ee9b1c1452 (diff) | |
download | uxp-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.h | 4 |
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: |