mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Fabric: Using better::map in ComponentDescriptorRegistry
Summary: Trivial. Reviewed By: mdvacca Differential Revision: D14249487 fbshipit-source-id: 6dca86d9fcf5c70e08289fc92e5c5a3fa3558238
This commit is contained in:
committed by
Facebook Github Bot
parent
90e49d759c
commit
2409fbaeba
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user