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

Unified Diff: Source/wtf/RawPtr.h

Issue 182733004: Fix build failures with ENABLE_OILPAN. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« 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: Source/wtf/RawPtr.h
diff --git a/Source/wtf/RawPtr.h b/Source/wtf/RawPtr.h
index 5151ae0dce38dc128254412656d8fe47b031d4b9..ac60e44768a2a950cfd6d5564e5d5b79ba54c26d 100644
--- a/Source/wtf/RawPtr.h
+++ b/Source/wtf/RawPtr.h
@@ -117,6 +117,11 @@ template<typename T, typename U> inline RawPtr<T> static_pointer_cast(const RawP
return RawPtr<T>(static_cast<T*>(p.get()));
}
+template<typename T> inline T* getPtr(const RawPtr<T>& p)
+{
+ return p.get();
+}
+
} // namespace WTF
using WTF::RawPtr;
« 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