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

Unified Diff: third_party/WebKit/Source/wtf/PassRefPtr.h

Issue 2274793002: Added move constructor to PassRefPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/PassRefPtr.h
diff --git a/third_party/WebKit/Source/wtf/PassRefPtr.h b/third_party/WebKit/Source/wtf/PassRefPtr.h
index af2a5a5a3f7fa2a308888b4d188d4b44c6ccd20b..11a191f8008ed1c795e20eae609014659f3688fe 100644
--- a/third_party/WebKit/Source/wtf/PassRefPtr.h
+++ b/third_party/WebKit/Source/wtf/PassRefPtr.h
@@ -70,6 +70,7 @@ public:
// PassRefPtr temporaries, and we don't have a need to use real const
// PassRefPtrs anyway.
PassRefPtr(const PassRefPtr& o) : m_ptr(o.leakRef()) {}
+ PassRefPtr(const PassRefPtr&& o) : m_ptr(o.leakRef()) {}
Yuta Kitamura 2016/08/24 08:26:22 Remove "const" here. It's confusing to have "const
Bugs Nash 2016/08/29 01:50:24 Done.
template <typename U> PassRefPtr(const PassRefPtr<U>& o, EnsurePtrConvertibleArgDecl(U, T)) : m_ptr(o.leakRef()) {}
ALWAYS_INLINE ~PassRefPtr() { derefIfNotNull(m_ptr); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698