aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/API/FIRCollectionReference.mm
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2017-11-30 12:26:16 -0800
committerGravatar GitHub <noreply@github.com>2017-11-30 12:26:16 -0800
commit530437ea7ad67db8c024203ac231f2d8320c3ddb (patch)
tree838e72c8430745d38650a98c22fc51268c42acba /Firestore/Source/API/FIRCollectionReference.mm
parent4ec5f00b1dec8220c1e458d852eecd602dd56b8f (diff)
Move sources into firebase::firestore and internal namespaces (#494)
* Move sources into firebase::firestore and internal namespaces Combine support and core/util packages; this distinction wasn't really paying its freight.
Diffstat (limited to 'Firestore/Source/API/FIRCollectionReference.mm')
-rw-r--r--Firestore/Source/API/FIRCollectionReference.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Firestore/Source/API/FIRCollectionReference.mm b/Firestore/Source/API/FIRCollectionReference.mm
index 7b487c6..92cccc6 100644
--- a/Firestore/Source/API/FIRCollectionReference.mm
+++ b/Firestore/Source/API/FIRCollectionReference.mm
@@ -16,7 +16,7 @@
#import "FIRCollectionReference.h"
-#include "Firestore/src/core/util/autoid.h"
+#include "Firestore/core/src/firebase/firestore/util/autoid.h"
#import "Firestore/Source/API/FIRDocumentReference+Internal.h"
#import "Firestore/Source/API/FIRQuery+Internal.h"
@@ -27,6 +27,8 @@
#import "Firestore/Source/Util/FSTAssert.h"
#import "Firestore/Source/Util/FSTUsageValidation.h"
+using firebase::firestore::util::CreateAutoId;
+
NS_ASSUME_NONNULL_BEGIN
@interface FIRCollectionReference ()
@@ -103,7 +105,7 @@ NS_ASSUME_NONNULL_BEGIN
}
- (FIRDocumentReference *)documentWithAutoID {
- NSString *autoID = [NSString stringWithUTF8String:firestore::CreateAutoId().c_str()];
+ NSString *autoID = [NSString stringWithUTF8String:CreateAutoId().c_str()];
FSTDocumentKey *key =
[FSTDocumentKey keyWithPath:[self.query.path pathByAppendingSegment:autoID]];
return [FIRDocumentReference referenceWithKey:key firestore:self.firestore];