aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/model/document_key.h
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-05-06 14:12:20 -0700
committerGravatar GitHub <noreply@github.com>2018-05-06 14:12:20 -0700
commit04a28fce81c737b6505e6c542a14d8529c9f891d (patch)
treee49c433fd6726a70efc280f1b5f4025e64da7f28 /Firestore/core/src/firebase/firestore/model/document_key.h
parent5af6de9e69b86ab94da78b9f889b96517cec47da (diff)
Make BasePath hash directly as a range (#1232)
Remove BasePath.Hash() Objective-C compatibility method Make DocumentKey's hasher use BasePath's segment-based hash code.
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model/document_key.h')
-rw-r--r--Firestore/core/src/firebase/firestore/model/document_key.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/document_key.h b/Firestore/core/src/firebase/firestore/model/document_key.h
index f6f4bf1..3f5f342 100644
--- a/Firestore/core/src/firebase/firestore/model/document_key.h
+++ b/Firestore/core/src/firebase/firestore/model/document_key.h
@@ -121,7 +121,7 @@ inline bool operator>=(const DocumentKey& lhs, const DocumentKey& rhs) {
struct DocumentKeyHash {
size_t operator()(const DocumentKey& key) const {
- return util::Hash(key.ToString());
+ return util::Hash(key.path());
}
};