| Index: base/win/scoped_handle.h
|
| diff --git a/base/win/scoped_handle.h b/base/win/scoped_handle.h
|
| index 62734b631c54e43a1d5a9938c065ca42fd7bd8e4..b5d9b5c4db3dc38f49726b7d4205f7af9ae7d647 100644
|
| --- a/base/win/scoped_handle.h
|
| +++ b/base/win/scoped_handle.h
|
| @@ -49,8 +49,8 @@ class GenericScopedHandle {
|
| }
|
|
|
| // Move constructor for C++03 move emulation of this type.
|
| - GenericScopedHandle(RValue& other) : handle_(Traits::NullHandle()) {
|
| - Set(other.Take());
|
| + GenericScopedHandle(RValue other) : handle_(Traits::NullHandle()) {
|
| + Set(other.object->Take());
|
| }
|
|
|
| ~GenericScopedHandle() {
|
| @@ -62,9 +62,9 @@ class GenericScopedHandle {
|
| }
|
|
|
| // Move operator= for C++03 move emulation of this type.
|
| - GenericScopedHandle& operator=(RValue& other) {
|
| - if (this != &other) {
|
| - Set(other.Take());
|
| + GenericScopedHandle& operator=(RValue other) {
|
| + if (this != other.object) {
|
| + Set(other.object->Take());
|
| }
|
| return *this;
|
| }
|
|
|