aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h')
-rw-r--r--Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h b/Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h
index 56da9e9..92fd823 100644
--- a/Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h
+++ b/Firestore/core/src/firebase/firestore/immutable/array_sorted_map.h
@@ -70,8 +70,8 @@ class FixedArray {
*/
template <typename SourceIterator>
void append(SourceIterator src_begin, SourceIterator src_end) {
- size_type appending = static_cast<size_type>(src_end - src_begin);
- size_type new_size = size_ + appending;
+ auto appending = static_cast<size_type>(src_end - src_begin);
+ auto new_size = size_ + appending;
FIREBASE_ASSERT(new_size <= fixed_size);
std::copy(src_begin, src_end, end());
@@ -229,8 +229,6 @@ class ArraySortedMap : public SortedMapBase {
}
}
- // TODO(wilhuff): indexof
-
/** Returns true if the map contains no elements. */
bool empty() const {
return size() == 0;