Skip to content

Commit

Permalink
Fabric: Trivial local variable renaming in RCTSurfaceTouchHandler
Browse files Browse the repository at this point in the history
Summary: It just makes the code much more readable.

Reviewed By: sammy-SC

Differential Revision: D16038432

fbshipit-source-id: db68dd38356660078bc94ec802fbdbb6c27ceead
  • Loading branch information
shergin authored and M-i-k-e-l committed Mar 10, 2020
1 parent cce3ae3 commit 540f4f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions React/Fabric/RCTSurfaceTouchHandler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ - (void)_dispatchActiveTouches:(std::vector<ActiveTouch>)activeTouches eventType
{
TouchEvent event = {};
std::unordered_set<ActiveTouch, ActiveTouch::Hasher, ActiveTouch::Comparator> changedActiveTouches = {};
std::unordered_set<SharedTouchEventEmitter> uniqueEventEmitter = {};
std::unordered_set<SharedTouchEventEmitter> uniqueEventEmitters = {};
BOOL isEndishEventType = eventType == RCTTouchEventTypeTouchEnd || eventType == RCTTouchEventTypeTouchCancel;

for (const auto &activeTouch : activeTouches) {
Expand All @@ -235,7 +235,7 @@ - (void)_dispatchActiveTouches:(std::vector<ActiveTouch>)activeTouches eventType

changedActiveTouches.insert(activeTouch);
event.changedTouches.insert(activeTouch.touch);
uniqueEventEmitter.insert(activeTouch.eventEmitter);
uniqueEventEmitters.insert(activeTouch.eventEmitter);
}

for (const auto &pair : _activeTouches) {
Expand All @@ -253,7 +253,7 @@ - (void)_dispatchActiveTouches:(std::vector<ActiveTouch>)activeTouches eventType
event.touches.insert(pair.second.touch);
}

for (const auto &eventEmitter : uniqueEventEmitter) {
for (const auto &eventEmitter : uniqueEventEmitters) {
event.targetTouches.clear();

for (const auto &pair : _activeTouches) {
Expand Down

0 comments on commit 540f4f9

Please sign in to comment.