mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Pass reference instead of shared_ptr to getInspectorDataForInstance
Summary: changelog: [internal] This is a pre-condition to get rid of `shared_ptr` from `EventEmitterWrapper`. Also saves us a few copies of shared_ptr, this is negligible though. Reviewed By: mdvacca Differential Revision: D31307048 fbshipit-source-id: b84654bed2359b66faf3995795e135e88fe51cb6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
42dc8ddff4
commit
ea53d3a9c2
@@ -244,7 +244,7 @@ Binding::getInspectorDataForInstance(
|
||||
|
||||
EventEmitterWrapper *cEventEmitter = cthis(eventEmitterWrapper);
|
||||
InspectorData data =
|
||||
scheduler->getInspectorDataForInstance(cEventEmitter->eventEmitter);
|
||||
scheduler->getInspectorDataForInstance(*cEventEmitter->eventEmitter);
|
||||
|
||||
folly::dynamic result = folly::dynamic::object;
|
||||
result["fileName"] = data.fileName;
|
||||
|
||||
Reference in New Issue
Block a user