diff --git a/vrs/StreamId.cpp b/vrs/StreamId.cpp index 56621478..642e0820 100644 --- a/vrs/StreamId.cpp +++ b/vrs/StreamId.cpp @@ -16,8 +16,8 @@ #include "StreamId.h" -#include #include +#include #include @@ -27,8 +27,8 @@ namespace vrs { namespace { -const map& getRecordableTypeIdRegistry() { - static const map sRegistry = { +const unordered_map& getRecordableTypeIdRegistry() { + static const unordered_map sRegistry = { {RecordableTypeId::Undefined, "Undefined"}, {RecordableTypeId::VRSIndex, "VRS Index"}, // should probably not happen {RecordableTypeId::VRSDescription, "VRS Description"}, // should probably not happen @@ -189,7 +189,7 @@ StreamId fromNumericNameWithSeparator(const string& numericName, uint8_t separat } // namespace string toString(RecordableTypeId typeId) { - const map& registry = getRecordableTypeIdRegistry(); + const unordered_map& registry = getRecordableTypeIdRegistry(); auto iter = registry.find(typeId); if (iter != registry.end()) { return iter->second; @@ -198,7 +198,7 @@ string toString(RecordableTypeId typeId) { } bool StreamId::isKnownTypeId(RecordableTypeId typeId) { - const map& registry = getRecordableTypeIdRegistry(); + const unordered_map& registry = getRecordableTypeIdRegistry(); return registry.find(typeId) != registry.end(); }