Closed
Bug 1186795
Opened 9 years ago
Closed 9 years ago
Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators
Categories
(Core :: Widget, defect)
Core
Widget
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(3 files)
3.40 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
2.07 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
1.45 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Because iterators are so much nicer than enumerate functions. There are two occurrences of EnumerateRead() in this directory. A note to the assignee: to preserve existing behaviour, you should probably use nsBaseHashtable::Iterator::UserData() rather than nsBaseHashtable::Iterator::Data(). (The latter should be used when replacing nsBaseHashtable::Enumerate()).
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8688220 -
Flags: review?(roc)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8688221 -
Flags: review?(roc)
Attachment #8688220 -
Flags: review?(roc) → review+
Comment on attachment 8688221 [details] [diff] [review] (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators Review of attachment 8688221 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/gtk/nsWindow.cpp @@ +3433,5 @@ > if (aEvent->type == GDK_TOUCH_BEGIN || aEvent->type == GDK_TOUCH_UPDATE) { > mTouches.Put(aEvent->sequence, touch.forget()); > // add all touch points to event object > + for (auto iter = mTouches.Iter(); !iter.Done(); iter.Next()) { > + event.touches.AppendElement(new dom::Touch(*iter.UserData())); 4-space indent
Attachment #8688221 -
Flags: review?(roc) → review+
Attachment #8688222 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/66d66e4a2b320878f946736eb8e9324a070ca96f Bug 1186795 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc. https://hg.mozilla.org/integration/mozilla-inbound/rev/4c17fd052cb33808ee28c7819230e15167a937d0 Bug 1186795 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc. https://hg.mozilla.org/integration/mozilla-inbound/rev/42585d719cc7d5c15d063bd01bb38e003d82214a Bug 1186795 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc.
Comment 6•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/66d66e4a2b32 https://hg.mozilla.org/mozilla-central/rev/4c17fd052cb3 https://hg.mozilla.org/mozilla-central/rev/42585d719cc7
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•