diff options
Diffstat (limited to 'Firestore/Source/Core/FSTViewSnapshot.mm')
-rw-r--r-- | Firestore/Source/Core/FSTViewSnapshot.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Firestore/Source/Core/FSTViewSnapshot.mm b/Firestore/Source/Core/FSTViewSnapshot.mm index e60b785..ae366fb 100644 --- a/Firestore/Source/Core/FSTViewSnapshot.mm +++ b/Firestore/Source/Core/FSTViewSnapshot.mm @@ -18,11 +18,14 @@ #import "Firestore/Source/Core/FSTQuery.h" #import "Firestore/Source/Model/FSTDocument.h" -#import "Firestore/Source/Model/FSTDocumentKey.h" #import "Firestore/Source/Model/FSTDocumentSet.h" #import "Firestore/Source/Util/FSTAssert.h" #import "Firestore/third_party/Immutable/FSTImmutableSortedDictionary.h" +#include "Firestore/core/src/firebase/firestore/model/document_key.h" + +using firebase::firestore::model::DocumentKey; + NS_ASSUME_NONNULL_BEGIN #pragma mark - FSTDocumentViewChange @@ -98,7 +101,7 @@ NS_ASSUME_NONNULL_BEGIN } - (void)addChange:(FSTDocumentViewChange *)change { - FSTDocumentKey *key = change.document.key; + const DocumentKey &key = change.document.key; FSTDocumentViewChange *oldChange = [self.changeMap objectForKey:key]; if (!oldChange) { self.changeMap = [self.changeMap dictionaryBySettingObject:change forKey:key]; |