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

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

Issue 2272133003: Remove an unused PassRefPtr ctor (Closed)
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..c5c5165279787edf949c7fe87b0183c12b82011f 100644
--- a/third_party/WebKit/Source/wtf/PassRefPtr.h
+++ b/third_party/WebKit/Source/wtf/PassRefPtr.h
@@ -64,7 +64,6 @@ public:
PassRefPtr() : m_ptr(nullptr) {}
PassRefPtr(std::nullptr_t) : m_ptr(nullptr) {}
PassRefPtr(T* ptr) : m_ptr(ptr) { refIfNotNull(ptr); }
- explicit PassRefPtr(T& ptr) : m_ptr(&ptr) { m_ptr->ref(); }
// It somewhat breaks the type system to allow transfer of ownership out of
// a const PassRefPtr. However, it makes it much easier to work with
// PassRefPtr temporaries, and we don't have a need to use real const
« 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