diff options
author | Gil <mcg@google.com> | 2018-05-06 14:12:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-06 14:12:20 -0700 |
commit | 04a28fce81c737b6505e6c542a14d8529c9f891d (patch) | |
tree | e49c433fd6726a70efc280f1b5f4025e64da7f28 /Firestore/Source/Core/FSTQuery.mm | |
parent | 5af6de9e69b86ab94da78b9f889b96517cec47da (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/Source/Core/FSTQuery.mm')
-rw-r--r-- | Firestore/Source/Core/FSTQuery.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Firestore/Source/Core/FSTQuery.mm b/Firestore/Source/Core/FSTQuery.mm index 0cd11e8..d3961e8 100644 --- a/Firestore/Source/Core/FSTQuery.mm +++ b/Firestore/Source/Core/FSTQuery.mm @@ -28,6 +28,7 @@ #include "Firestore/core/src/firebase/firestore/model/document_key.h" #include "Firestore/core/src/firebase/firestore/model/field_path.h" #include "Firestore/core/src/firebase/firestore/model/resource_path.h" +#include "Firestore/core/src/firebase/firestore/util/hashing.h" #include "Firestore/core/src/firebase/firestore/util/string_apple.h" namespace util = firebase::firestore::util; @@ -259,7 +260,7 @@ NSString *FSTStringFromQueryRelationOperator(FSTRelationFilterOperator filterOpe } - (NSUInteger)hash { - return _field.Hash(); + return util::Hash(_field); } @end @@ -305,7 +306,7 @@ NSString *FSTStringFromQueryRelationOperator(FSTRelationFilterOperator filterOpe } - (NSUInteger)hash { - return _field.Hash(); + return util::Hash(_field); } @end |