| Index: mojo/public/cpp/bindings/array.h
|
| diff --git a/mojo/public/cpp/bindings/array.h b/mojo/public/cpp/bindings/array.h
|
| index 2544abb04dadf76c001a0d186c8d6d7e79de5af9..ca4e9cc18df2241ea8e347558b4e0b4601d1359e 100644
|
| --- a/mojo/public/cpp/bindings/array.h
|
| +++ b/mojo/public/cpp/bindings/array.h
|
| @@ -20,7 +20,7 @@ namespace mojo {
|
|
|
| template <typename T>
|
| class Array {
|
| - MOJO_MOVE_ONLY_TYPE_FOR_CPP_03(Array, RValue)
|
| + MOJO_MOVE_ONLY_TYPE(Array)
|
| public:
|
| typedef internal::ArrayTraits<T, internal::IsMoveOnlyType<T>::value> Traits;
|
| typedef typename Traits::ConstRefType ConstRefType;
|
| @@ -37,9 +37,9 @@ class Array {
|
| }
|
| ~Array() { Traits::Finalize(&vec_); }
|
|
|
| - Array(RValue other) : is_null_(true) { Take(other.object); }
|
| - Array& operator=(RValue other) {
|
| - Take(other.object);
|
| + Array(Array&& other) : is_null_(true) { Take(&other); }
|
| + Array& operator=(Array&& other) {
|
| + Take(&other);
|
| return *this;
|
| }
|
|
|
|
|