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/API | |
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/API')
-rw-r--r-- | Firestore/Source/API/FIRFieldPath.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Firestore/Source/API/FIRFieldPath.mm b/Firestore/Source/API/FIRFieldPath.mm index d0d8714..4fd0022 100644 --- a/Firestore/Source/API/FIRFieldPath.mm +++ b/Firestore/Source/API/FIRFieldPath.mm @@ -25,6 +25,7 @@ #import "Firestore/Source/Util/FSTUsageValidation.h" #include "Firestore/core/src/firebase/firestore/model/field_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; @@ -114,7 +115,7 @@ NS_ASSUME_NONNULL_BEGIN } - (NSUInteger)hash { - return _internalValue.Hash(); + return util::Hash(_internalValue); } - (const firebase::firestore::model::FieldPath &)internalValue { |