Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: third_party/mojo/src/mojo/public/python/src/common.h

Issue 975973002: Update mojo sdk to rev f68e697e389943cd9bf9652397312280e96b127a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shake fist at msvc Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};
« no previous file with comments | « third_party/mojo/src/mojo/public/python/mojo_system.pyx ('k') | third_party/mojo/src/mojo/public/python/src/common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698