| Index: mojo/public/cpp/bindings/lib/iterator_util.h
|
| diff --git a/mojo/public/cpp/bindings/lib/iterator_util.h b/mojo/public/cpp/bindings/lib/iterator_util.h
|
| index 2a6ae3081ca3a8520dbb29d4bf4f106160f0ed16..071daa3cda205908d6361f0a2a7a89ad4504b0b0 100644
|
| --- a/mojo/public/cpp/bindings/lib/iterator_util.h
|
| +++ b/mojo/public/cpp/bindings/lib/iterator_util.h
|
| @@ -63,7 +63,7 @@ class MapKeyIterator {
|
| bool operator==(const Iterator& o) const { return o.it_ == it_; }
|
| bool operator!=(const Iterator& o) const { return o.it_ != it_; }
|
| typename Map<K, V>::KeyConstRefType operator*() { return it_.GetKey(); }
|
| - typename Map<K, V>::KeyConstRefType operator->() { return operator*(); }
|
| + const K* operator->() { return &it_.GetKey(); }
|
|
|
| private:
|
| typename Map<K, V>::MapIterator it_;
|
| @@ -108,7 +108,7 @@ class MapValueIterator {
|
| bool operator==(const Iterator& o) const { return o.it_ == it_; }
|
| bool operator!=(const Iterator& o) const { return o.it_ != it_; }
|
| typename Map<K, V>::ValueRefType operator*() { return it_.GetValue(); }
|
| - typename Map<K, V>::ValueRefType operator->() { return operator*(); }
|
| + V* operator->() { return &it_.GetValue(); }
|
|
|
| private:
|
| typename Map<K, V>::MapIterator it_;
|
|
|