Closed
Bug 1036290
Opened 11 years ago
Closed 11 years ago
Use nsAutoTArray for copying TouchArray
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
6.16 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #3)
> Comment on attachment 8452191 [details] [diff] [review]
> Use mozilla::WidgetTouchEvent::TouchArray instead of
> nsTArry<nsRefPtr<mozilla::dom::Touch>>
>
> Review of attachment 8452191 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> You could use "auto" in some of these places too.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8452966 -
Flags: review?(roc)
Comment on attachment 8452966 [details] [diff] [review]
Patch
Review of attachment 8452966 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry, no; I meant the C++ "auto" feature for declaring the types of local variables.
Attachment #8452966 -
Flags: review?(roc) → review-
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #2)
> Comment on attachment 8452966 [details] [diff] [review]
> Patch
>
> Review of attachment 8452966 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Sorry, no; I meant the C++ "auto" feature for declaring the types of local
> variables.
Oh... But anyway, isn't it better to use nsAutoTArray in the cases of the patch?
Flags: needinfo?(roc)
Comment on attachment 8452966 [details] [diff] [review]
Patch
Review of attachment 8452966 [details] [diff] [review]:
-----------------------------------------------------------------
Yes, you're right.
Attachment #8452966 -
Flags: review- → review+
Comment 5•11 years ago
|
||
(I give r- in general for code using auto. It makes code faster to write but harder to read, and
I prefer good readability.)
Assignee | ||
Comment 6•11 years ago
|
||
I agree with Smaug. If other developers use "auto" in a lot of places, we need to check its definition of every variable. So, I think that we shouldn't use "auto" as far as possible. Although, it might be better to use in template.
Flags: needinfo?(roc)
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•