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

Unified Diff: Source/wtf/GetPtr.h

Issue 181513002: Kill [SetWrapperReferenceFromReference] IDL extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
Index: Source/wtf/GetPtr.h
diff --git a/Source/wtf/GetPtr.h b/Source/wtf/GetPtr.h
index 25a0e6d9bb1068574083dcb9a1d23f8420af5bd7..a0f7c62f8b891f34a8cd3542a273a6b6e0f13e83 100644
--- a/Source/wtf/GetPtr.h
+++ b/Source/wtf/GetPtr.h
@@ -28,6 +28,11 @@ namespace WTF {
return p;
}
+ template <typename T> inline T* getPtr(T& p)
+ {
+ return &p;
+ }
+
} // namespace WTF
#endif // WTF_GetPtr_h
« Source/bindings/templates/interface.cpp ('K') | « Source/core/html/HTMLOptionsCollection.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698