Skip to content
Snippets Groups Projects
Commit c019799f authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix test failure

parent 6851c65b
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -357,7 +357,7 @@ class LLPolyMesh ...@@ -357,7 +357,7 @@ class LLPolyMesh
LLPolyMesh *mReferenceMesh; LLPolyMesh *mReferenceMesh;
// global mesh list // global mesh list
typedef std::map<std::string, LLPolyMeshSharedData*> LLPolyMeshSharedDataTable; typedef boost::unordered_flat_map<std::string, LLPolyMeshSharedData*, al::string_hash, std::equal_to<>> LLPolyMeshSharedDataTable;
static LLPolyMeshSharedDataTable sGlobalSharedMeshList; static LLPolyMeshSharedDataTable sGlobalSharedMeshList;
// Backlink only; don't make this an LLPointer. // Backlink only; don't make this an LLPointer.
......
...@@ -348,7 +348,7 @@ class LL_COMMON_API LLEventPumps final : public LLSingleton<LLEventPumps>, ...@@ -348,7 +348,7 @@ class LL_COMMON_API LLEventPumps final : public LLSingleton<LLEventPumps>,
// LLEventPump subclass statically, as a class member, on the stack or on // LLEventPump subclass statically, as a class member, on the stack or on
// the heap. In such cases, the instantiating party is responsible for its // the heap. In such cases, the instantiating party is responsible for its
// lifespan. // lifespan.
typedef boost::unordered_map<std::string, LLEventPump*> PumpMap; typedef std::map<std::string, LLEventPump*, std::less<>> PumpMap;
PumpMap mPumpMap; PumpMap mPumpMap;
// Set of all LLEventPumps we instantiated. Membership in this set means // Set of all LLEventPumps we instantiated. Membership in this set means
// we claim ownership, and will delete them when this LLEventPumps is // we claim ownership, and will delete them when this LLEventPumps is
...@@ -356,7 +356,7 @@ class LL_COMMON_API LLEventPumps final : public LLSingleton<LLEventPumps>, ...@@ -356,7 +356,7 @@ class LL_COMMON_API LLEventPumps final : public LLSingleton<LLEventPumps>,
typedef boost::unordered_set<LLEventPump*> PumpSet; typedef boost::unordered_set<LLEventPump*> PumpSet;
PumpSet mOurPumps; PumpSet mOurPumps;
// for make(), map string type name to LLEventPump subclass factory function // for make(), map string type name to LLEventPump subclass factory function
typedef boost::unordered_map<std::string, TypeFactory> TypeFactories; typedef boost::unordered_map<std::string, TypeFactory, al::string_hash, std::equal_to<>> TypeFactories;
// Data used by make(). // Data used by make().
// One might think mFactories and mTypes could reasonably be static. So // One might think mFactories and mTypes could reasonably be static. So
// they could -- if not for the fact that make() or obtain() might be // they could -- if not for the fact that make() or obtain() might be
...@@ -366,7 +366,7 @@ class LL_COMMON_API LLEventPumps final : public LLSingleton<LLEventPumps>, ...@@ -366,7 +366,7 @@ class LL_COMMON_API LLEventPumps final : public LLSingleton<LLEventPumps>,
// for obtain(), map desired string instance name to string type when // for obtain(), map desired string instance name to string type when
// obtain() must create the instance // obtain() must create the instance
typedef boost::unordered_map<std::string, std::string> InstanceTypes; typedef boost::unordered_map<std::string, std::string, al::string_hash, std::equal_to<>> InstanceTypes;
InstanceTypes mTypes; InstanceTypes mTypes;
}; };
...@@ -607,7 +607,7 @@ class LL_COMMON_API LLEventPump: public LLEventTrackable ...@@ -607,7 +607,7 @@ class LL_COMMON_API LLEventPump: public LLEventTrackable
/// Map of named listeners. This tracks the listeners that actually exist /// Map of named listeners. This tracks the listeners that actually exist
/// at this moment. When we stopListening(), we discard the entry from /// at this moment. When we stopListening(), we discard the entry from
/// this map. /// this map.
typedef boost::unordered_map<std::string, boost::signals2::connection> ConnectionMap; typedef boost::unordered_map<std::string, boost::signals2::connection, al::string_hash, std::equal_to<>> ConnectionMap;
ConnectionMap mConnections; ConnectionMap mConnections;
typedef LLDependencies<std::string, float> DependencyMap; typedef LLDependencies<std::string, float> DependencyMap;
/// Dependencies between listeners. For each listener, track the float /// Dependencies between listeners. For each listener, track the float
......
...@@ -81,11 +81,11 @@ class LLEmojiDictionary : public LLParamSingleton<LLEmojiDictionary>, public LLI ...@@ -81,11 +81,11 @@ class LLEmojiDictionary : public LLParamSingleton<LLEmojiDictionary>, public LLI
~LLEmojiDictionary() override {}; ~LLEmojiDictionary() override {};
public: public:
typedef boost::unordered_map<std::string, std::string> cat2cat_map_t; typedef boost::unordered_map<std::string, std::string, al::string_hash, std::equal_to<>> cat2cat_map_t;
typedef boost::unordered_map<std::string, const LLEmojiGroup*> cat2group_map_t; typedef boost::unordered_map<std::string, const LLEmojiGroup*, al::string_hash, std::equal_to<>> cat2group_map_t;
typedef boost::unordered_map<llwchar, const LLEmojiDescriptor*> emoji2descr_map_t; typedef boost::unordered_map<llwchar, const LLEmojiDescriptor*> emoji2descr_map_t;
typedef boost::unordered_map<std::string, const LLEmojiDescriptor*> code2descr_map_t; typedef boost::unordered_map<std::string, const LLEmojiDescriptor*, al::string_hash, std::equal_to<>> code2descr_map_t;
typedef boost::unordered_map<std::string, std::vector<const LLEmojiDescriptor*>> cat2descrs_map_t; typedef boost::unordered_map<std::string, std::vector<const LLEmojiDescriptor*>, al::string_hash, std::equal_to<>> cat2descrs_map_t;
static void initClass(); static void initClass();
LLWString findMatchingEmojis(const std::string& needle) const; LLWString findMatchingEmojis(const std::string& needle) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment