WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
37603
Add WKRetainPtr helper class as private header
https://bugs.webkit.org/show_bug.cgi?id=37603
Summary
Add WKRetainPtr helper class as private header
Sam Weinig
Reported
2010-04-14 13:49:09 PDT
Add WKRetainPtr helper class as private header
Attachments
patch
(10.96 KB, patch)
2010-04-14 13:55 PDT
,
Sam Weinig
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2010-04-14 13:55:07 PDT
Created
attachment 53362
[details]
patch
WebKit Review Bot
Comment 2
2010-04-14 13:57:15 PDT
Attachment 53362
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebKit2/UIProcess/API/cpp/WKRetainPtr.h:95: More than one command on the same line [whitespace/newline] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Anders Carlsson
Comment 3
2010-04-14 13:58:00 PDT
Comment on
attachment 53362
[details]
patch
> + > +#define DECLARE_RETAIN_RELEASE_OVERLOADS(WKType) \ > + inline void WKRetain(WKType##Ref p) { WKType##Retain(p); } \ > + inline void WKRelease(WKType##Ref p) { WKType##Release(p); } \ > + // end of macro > + > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKContext) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKFrame) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKFramePolicyListener) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKPage) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKPageNamespace) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKPreferences) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKString) > +DECLARE_RETAIN_RELEASE_OVERLOADS(WKURL) > + > +#undef DECLARE_RETAIN_RELEASE_OVERLOADS
Could you add a fixme about adding these overloads to the respective headers (when compiling as C++).
> +template <typename T> inline void WKRetainPtr<T>::adoptCF(PtrType optr)
This shouldn't be here.
> +template <typename T> inline void WKRetainPtr<T>::adoptNS(PtrType optr)
Nor should this. Looks good otherwise! r=me
Sam Weinig
Comment 4
2010-04-14 14:08:58 PDT
Landed in
r57605
.
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