aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/API/FIRDocumentSnapshot.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Source/API/FIRDocumentSnapshot.mm')
-rw-r--r--Firestore/Source/API/FIRDocumentSnapshot.mm12
1 files changed, 5 insertions, 7 deletions
diff --git a/Firestore/Source/API/FIRDocumentSnapshot.mm b/Firestore/Source/API/FIRDocumentSnapshot.mm
index 8e731da..4d82986 100644
--- a/Firestore/Source/API/FIRDocumentSnapshot.mm
+++ b/Firestore/Source/API/FIRDocumentSnapshot.mm
@@ -24,7 +24,6 @@
#import "Firestore/Source/Model/FSTDocument.h"
#import "Firestore/Source/Model/FSTDocumentKey.h"
#import "Firestore/Source/Model/FSTFieldValue.h"
-#import "Firestore/Source/Model/FSTPath.h"
#import "Firestore/Source/Util/FSTAssert.h"
#import "Firestore/Source/Util/FSTUsageValidation.h"
@@ -184,12 +183,11 @@ NS_ASSUME_NONNULL_BEGIN
// TODO(b/32073923): Log this as a proper warning.
NSLog(
@"WARNING: Document %@ contains a document reference within a different database "
- "(%@/%@) which is not supported. It will be treated as a reference within the "
- "current database (%@/%@) instead.",
- self.reference.path, util::WrapNSStringNoCopy(refDatabase->project_id()),
- util::WrapNSStringNoCopy(refDatabase->database_id()),
- util::WrapNSStringNoCopy(database->project_id()),
- util::WrapNSStringNoCopy(database->database_id()));
+ "(%s/%s) which is not supported. It will be treated as a reference within the "
+ "current database (%s/%s) instead.",
+ self.reference.path, refDatabase->project_id().c_str(),
+ refDatabase->database_id().c_str(), database->project_id().c_str(),
+ database->database_id().c_str());
}
return [FIRDocumentReference referenceWithKey:[ref valueWithOptions:options]
firestore:self.firestore];