| Index: mojo/public/cpp/bindings/map.h
|
| diff --git a/mojo/public/cpp/bindings/map.h b/mojo/public/cpp/bindings/map.h
|
| index 0f08d838bb85e2ba16a73d0a462ff314603f6bda..2449ea99f360bf2ced4ccaab2b2ee2516cb78d0f 100644
|
| --- a/mojo/public/cpp/bindings/map.h
|
| +++ b/mojo/public/cpp/bindings/map.h
|
| @@ -6,6 +6,7 @@
|
| #define MOJO_PUBLIC_CPP_BINDINGS_MAP_H_
|
|
|
| #include <map>
|
| +#include <utility>
|
|
|
| #include "mojo/public/cpp/bindings/lib/map_internal.h"
|
| #include "mojo/public/cpp/bindings/lib/value_traits.h"
|
| @@ -53,7 +54,7 @@ class Map {
|
| // corresponding |values|.
|
| Map(mojo::Array<Key> keys, mojo::Array<Value> values) : is_null_(false) {
|
| MOJO_DCHECK(keys.size() == values.size());
|
| - Traits::InitializeFrom(&map_, keys.Pass(), values.Pass());
|
| + Traits::InitializeFrom(&map_, std::move(keys), std::move(values));
|
| }
|
|
|
| ~Map() { Traits::Finalize(&map_); }
|
| @@ -156,7 +157,7 @@ class Map {
|
| Map result;
|
| result.is_null_ = is_null_;
|
| Traits::Clone(map_, &result.map_);
|
| - return result.Pass();
|
| + return std::move(result);
|
| }
|
|
|
| // Indicates whether the contents of this map are equal to those of another
|
| @@ -266,7 +267,7 @@ struct TypeConverter<Map<MojoKey, MojoValue>, std::map<STLKey, STLValue>> {
|
| result.insert(TypeConverter<MojoKey, STLKey>::Convert(pair.first),
|
| TypeConverter<MojoValue, STLValue>::Convert(pair.second));
|
| }
|
| - return result.Pass();
|
| + return std::move(result);
|
| }
|
| };
|
|
|
|
|