aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Local/FSTNoOpGarbageCollector.mm
diff options
context:
space:
mode:
authorGravatar zxu <zxu@google.com>2018-03-23 17:52:01 -0400
committerGravatar GitHub <noreply@github.com>2018-03-23 17:52:01 -0400
commit0ccfd6a3dc77fb733626bc8911b5925ad9475c2e (patch)
treee3d443c4cd7410e09250999dbe0bda07df84d698 /Firestore/Source/Local/FSTNoOpGarbageCollector.mm
parent6a61d83854fa7f0cc5898ee50c65169583a5b69c (diff)
port C++ `DocumentKey` to `Local/*` (#963)
* port C++ DocumentKey to Local's * address changes
Diffstat (limited to 'Firestore/Source/Local/FSTNoOpGarbageCollector.mm')
-rw-r--r--Firestore/Source/Local/FSTNoOpGarbageCollector.mm10
1 files changed, 7 insertions, 3 deletions
diff --git a/Firestore/Source/Local/FSTNoOpGarbageCollector.mm b/Firestore/Source/Local/FSTNoOpGarbageCollector.mm
index e03b599..451cde2 100644
--- a/Firestore/Source/Local/FSTNoOpGarbageCollector.mm
+++ b/Firestore/Source/Local/FSTNoOpGarbageCollector.mm
@@ -16,6 +16,10 @@
#import "Firestore/Source/Local/FSTNoOpGarbageCollector.h"
+#include "Firestore/core/src/firebase/firestore/model/document_key.h"
+
+using firebase::firestore::model::DocumentKey;
+
NS_ASSUME_NONNULL_BEGIN
@implementation FSTNoOpGarbageCollector
@@ -32,12 +36,12 @@ NS_ASSUME_NONNULL_BEGIN
// Not tracking garbage so don't track sources.
}
-- (void)addPotentialGarbageKey:(FSTDocumentKey *)key {
+- (void)addPotentialGarbageKey:(const DocumentKey&)key {
// Not tracking garbage so ignore.
}
-- (NSSet<FSTDocumentKey *> *)collectGarbage {
- return [NSSet set];
+- (std::set<DocumentKey>)collectGarbage {
+ return {};
}
@end