WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138331
Allow implicit conversion from Ref<T> to T&
https://bugs.webkit.org/show_bug.cgi?id=138331
Summary
Allow implicit conversion from Ref<T> to T&
Chris Dumez
Reported
2014-11-03 15:59:28 PST
Allow implicit conversion from Ref<T> to T& to reduce the amount of Ref<>::get() calls in the code and increase readability. Unlike for RefPtr, doing this for Ref should not be error prone.
Attachments
Patch
(37.08 KB, patch)
2014-11-03 16:09 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(40.03 KB, patch)
2014-11-03 21:23 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-11-03 16:09:12 PST
Created
attachment 240880
[details]
Patch
Andreas Kling
Comment 2
2014-11-03 18:28:45 PST
I kinda like this. Paging Darin for 2nd opinion.
Darin Adler
Comment 3
2014-11-03 18:43:56 PST
I like it too. Unless we have to get rid of Ref completely.
Chris Dumez
Comment 4
2014-11-03 21:23:42 PST
Created
attachment 240910
[details]
Patch
Andreas Kling
Comment 5
2014-11-03 22:42:38 PST
(In reply to
comment #3
)
> I like it too. Unless we have to get rid of Ref completely.
We do? Let's find time to discuss that in person at some point.
Andreas Kling
Comment 6
2014-11-03 22:42:51 PST
Comment on
attachment 240910
[details]
Patch r=me on this.
WebKit Commit Bot
Comment 7
2014-11-03 23:22:13 PST
Comment on
attachment 240910
[details]
Patch Clearing flags on attachment: 240910 Committed
r175513
: <
http://trac.webkit.org/changeset/175513
>
WebKit Commit Bot
Comment 8
2014-11-03 23:22:18 PST
All reviewed patches have been landed. Closing bug.
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