RESOLVED FIXED 73399
Add adoptCF and adoptNS convenience functions to RetainPtr.h
https://bugs.webkit.org/show_bug.cgi?id=73399
Summary Add adoptCF and adoptNS convenience functions to RetainPtr.h
Sam Weinig
Reported 2011-11-29 22:14:39 PST
Add adoptCF and adoptNS convenience functions to RetainPtr.h
Attachments
Patch (1.59 KB, patch)
2011-11-29 22:15 PST, Sam Weinig
andersca: review+
Sam Weinig
Comment 1 2011-11-29 22:15:37 PST
Anders Carlsson
Comment 2 2011-11-30 10:09:16 PST
Comment on attachment 117124 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=117124&action=review > Source/JavaScriptCore/wtf/RetainPtr.h:267 > + template<typename T> inline RetainPtr<T> adoptCF(T o) > + { > + return RetainPtr<T>(AdoptCF, o); > + } > + > + template<typename T> inline RetainPtr<T> adoptNS(T o) > + { > + return RetainPtr<T>(AdoptNS, o); > + } > + Please decorate these with WARN_UNUSED_RESULT.
Sam Weinig
Comment 3 2011-11-30 10:25:54 PST
Note You need to log in before you can comment on or make changes to this bug.