WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2011-11-29 22:15:37 PST
Created
attachment 117124
[details]
Patch
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
Committed
r101528
: <
http://trac.webkit.org/changeset/101528
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug