| Index: third_party/mojo/src/mojo/public/python/src/common.h
|
| diff --git a/third_party/mojo/src/mojo/public/python/src/common.h b/third_party/mojo/src/mojo/public/python/src/common.h
|
| index 4eae72e51c4be1d7dd4768bd4f33d2f3cf6cc6ab..2ada2a411787bbea4d77d4c8571e195d23b101cc 100644
|
| --- a/third_party/mojo/src/mojo/public/python/src/common.h
|
| +++ b/third_party/mojo/src/mojo/public/python/src/common.h
|
| @@ -37,18 +37,19 @@ class ScopedPyRef {
|
| public:
|
| explicit ScopedPyRef(PyObject* object);
|
| ScopedPyRef(PyObject* object, ScopedPyRefAcquire);
|
| + ScopedPyRef(const ScopedPyRef& other);
|
|
|
| ~ScopedPyRef();
|
|
|
| // Releases ownership of the python object contained by this instance.
|
| PyObject* Release();
|
|
|
| - operator PyObject*() const;
|
| + operator PyObject*() const { return object_; }
|
| +
|
| + ScopedPyRef& operator=(const ScopedPyRef& other);
|
|
|
| private:
|
| PyObject* object_;
|
| -
|
| - MOJO_DISALLOW_COPY_AND_ASSIGN(ScopedPyRef);
|
| };
|
|
|
|
|
|
|