Fabric: Using better::map in ComponentDescriptorRegistry

Summary: Trivial.

Reviewed By: mdvacca

Differential Revision: D14249487

fbshipit-source-id: 6dca86d9fcf5c70e08289fc92e5c5a3fa3558238
This commit is contained in:
Valentin Shergin
2019-03-03 13:47:15 -08:00
committed by Facebook Github Bot
parent 90e49d759c
commit 2409fbaeba

View File

@@ -7,6 +7,7 @@
#include <memory>
#include <better/map.h>
#include <react/core/ComponentDescriptor.h>
namespace facebook {
@@ -40,9 +41,8 @@ class ComponentDescriptorRegistry {
const SharedEventTarget &eventTarget) const;
private:
std::unordered_map<ComponentHandle, SharedComponentDescriptor>
_registryByHandle;
std::unordered_map<ComponentName, SharedComponentDescriptor> _registryByName;
better::map<ComponentHandle, SharedComponentDescriptor> _registryByHandle;
better::map<ComponentName, SharedComponentDescriptor> _registryByName;
};
} // namespace react