WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
44728
Adopt more uses OwnPtr/OwnArray in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=44728
Summary
Adopt more uses OwnPtr/OwnArray in WebKit2
Sam Weinig
Reported
2010-08-26 15:48:44 PDT
Adopt more uses OwnPtr/OwnArray in WebKit2
Attachments
Patch
(29.25 KB, patch)
2010-08-26 15:50 PDT
,
Sam Weinig
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2010-08-26 15:50:01 PDT
Created
attachment 65636
[details]
Patch
Early Warning System Bot
Comment 2
2010-08-26 16:01:47 PDT
Attachment 65636
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/3808087
Darin Adler
Comment 3
2010-08-26 17:48:25 PDT
Comment on
attachment 65636
[details]
Patch
> - for (size_t i = 0; i < m_size; ++i) > - m_entries[i]->ref();
You got rid of the ref() here. That is not right, is it? Should this be an array of RefPtr<APIObject>? r=me as long as you fix that ref thing
Sam Weinig
Comment 4
2010-08-26 18:34:20 PDT
(In reply to
comment #3
)
> (From update of
attachment 65636
[details]
) > > - for (size_t i = 0; i < m_size; ++i) > > - m_entries[i]->ref(); > > You got rid of the ref() here. That is not right, is it?
It is. I commented in the changelog that I change the semantics of this function to match the adopt function. It is currently unused.
> Should this be an array of RefPtr<APIObject>?
It can't be if we want to allow the adoption semantics to remain the same (the C API is allowed to give a buffer that is adopted by the Array).
Sam Weinig
Comment 5
2010-08-26 18:49:31 PDT
Landed in
r66165
.
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