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

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

Issue 2867693003: Changed PassRefPtr templated copy constructor to move constructor. (Closed)
Patch Set: Created 3 years, 7 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/WebKit/Source/platform/wtf/PassRefPtr.h
diff --git a/third_party/WebKit/Source/platform/wtf/PassRefPtr.h b/third_party/WebKit/Source/platform/wtf/PassRefPtr.h
index 0547aea742064ded26621d057695c6abe89c4813..f36ee84df5d6d6b403810bc10ef24dffe745f744 100644
--- a/third_party/WebKit/Source/platform/wtf/PassRefPtr.h
+++ b/third_party/WebKit/Source/platform/wtf/PassRefPtr.h
@@ -74,7 +74,7 @@ class PassRefPtr {
PassRefPtr(T* ptr) : ptr_(ptr) { RefIfNotNull(ptr); }
PassRefPtr(PassRefPtr&& o) : ptr_(o.LeakRef()) {}
template <typename U>
- PassRefPtr(const PassRefPtr<U>& o, EnsurePtrConvertibleArgDecl(U, T))
+ PassRefPtr(PassRefPtr<U>&& o, EnsurePtrConvertibleArgDecl(U, T))
: ptr_(o.LeakRef()) {}
ALWAYS_INLINE ~PassRefPtr() { DerefIfNotNull(ptr_); }
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMTypedArray.h ('k') | third_party/WebKit/Source/web/tests/MHTMLTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698