WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
190796
Deque's contains() and findIf() should be const
https://bugs.webkit.org/show_bug.cgi?id=190796
Summary
Deque's contains() and findIf() should be const
Chris Dumez
Reported
2018-10-22 09:39:02 PDT
Deque's contains() and findIf() should be const as they do not modify the container.
Attachments
Patch
(5.61 KB, patch)
2018-10-22 10:10 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2018-10-22 10:10:54 PDT
Created
attachment 352895
[details]
Patch
Antti Koivisto
Comment 2
2018-10-22 11:31:41 PDT
Comment on
attachment 352895
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=352895&action=review
> Source/WTF/wtf/Deque.h:407 > + return std::find_if(begin(), end(), predicate);
Considering how few clients this stuff has, maybe they could just do this themselves.
Chris Dumez
Comment 3
2018-10-22 11:40:03 PDT
Comment on
attachment 352895
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=352895&action=review
>> Source/WTF/wtf/Deque.h:407 >> + return std::find_if(begin(), end(), predicate); > > Considering how few clients this stuff has, maybe they could just do this themselves.
I considered that but I personally do not like the std::algorithm functions as they are too verbose. I like that our container types have their own less verbose convenience methods.
WebKit Commit Bot
Comment 4
2018-10-22 14:05:09 PDT
Comment on
attachment 352895
[details]
Patch Clearing flags on attachment: 352895 Committed
r237329
: <
https://trac.webkit.org/changeset/237329
>
WebKit Commit Bot
Comment 5
2018-10-22 14:05:11 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2018-10-22 14:06:33 PDT
<
rdar://problem/45465502
>
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