diff options
author | rsgowman <rgowman@google.com> | 2018-02-21 12:09:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 12:09:05 -0500 |
commit | 67b068e528ace4970cb21912ce9350cc1d0e292d (patch) | |
tree | b00a1a5075fdc9cfa721a807c3d4b16f89322685 /Firestore/Source/Remote | |
parent | 14ea068f5fd03a658017f8472a4078a727fabc3a (diff) |
Fix implicit retain self warnings (#808)
Xcode has starting warning about us implicitly retaining self references
within blocks. This commit fixes it by explicitly mentioning self. No
real changes are introduced here; this is effectively just making
implicit behaviour explicit.
Diffstat (limited to 'Firestore/Source/Remote')
-rw-r--r-- | Firestore/Source/Remote/FSTRemoteStore.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Firestore/Source/Remote/FSTRemoteStore.mm b/Firestore/Source/Remote/FSTRemoteStore.mm index c6668bf..b2e4013 100644 --- a/Firestore/Source/Remote/FSTRemoteStore.mm +++ b/Firestore/Source/Remote/FSTRemoteStore.mm @@ -507,10 +507,10 @@ static const int kOnlineAttemptsBeforeFailure = 2; FSTBoxedTargetID *target, FSTTargetChange *change, BOOL *stop) { NSData *resumeToken = change.resumeToken; if (resumeToken.length > 0) { - FSTQueryData *queryData = _listenTargets[target]; + FSTQueryData *queryData = self->_listenTargets[target]; // A watched target might have been removed already. if (queryData) { - _listenTargets[target] = + self->_listenTargets[target] = [queryData queryDataByReplacingSnapshotVersion:change.snapshotVersion resumeToken:resumeToken]; } |