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:
Samuel Susla
2021-10-01 17:47:20 -07:00
committed by Facebook GitHub Bot
parent 42dc8ddff4
commit ea53d3a9c2
5 changed files with 6 additions and 6 deletions
@@ -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;