aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/model/document_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model/document_key.h')
-rw-r--r--Firestore/core/src/firebase/firestore/model/document_key.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/document_key.h b/Firestore/core/src/firebase/firestore/model/document_key.h
index 8e590d8..134bda5 100644
--- a/Firestore/core/src/firebase/firestore/model/document_key.h
+++ b/Firestore/core/src/firebase/firestore/model/document_key.h
@@ -55,6 +55,10 @@ class DocumentKey {
operator FSTDocumentKey*() const {
return [FSTDocumentKey keyWithPath:path()];
}
+
+ std::string ToString() const {
+ return path().CanonicalString();
+ }
#endif
/**
@@ -83,11 +87,6 @@ class DocumentKey {
return path_ ? *path_ : Empty().path();
}
-#if defined(__OBJC__)
- // Helper function to convert to FSTDocumentKey during the C++ migration.
- FSTDocumentKey* ToFSTDocumentKey() const;
-#endif // defined(__OBJC__)
-
private:
// This is an optimization to make passing DocumentKey around cheaper (it's
// copied often).