Closed Bug 750026 Opened 12 years ago Closed 12 years ago

rm some unneeded nsCOMPtrs

Categories

(Core :: Disability Access APIs, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: tbsaunde, Assigned: tbsaunde)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

I'm pretty sure we don't need owning refs in any of these places.
Attachment #619367 - Flags: review?(surkov.alexander)
Summary: rm some unneeded nsnsCOMPtrs → rm some unneeded nsCOMPtrs
Attachment #619366 - Flags: review?(surkov.alexander) → review+
Comment on attachment 619367 [details] [diff] [review]
don't keep a ref to an atom when we don't need to

Review of attachment 619367 [details] [diff] [review]:
-----------------------------------------------------------------

::: accessible/src/html/nsHTMLSelectAccessible.cpp
@@ +190,2 @@
>      if (tag == nsGkAtoms::option ||
>          tag == nsGkAtoms::optgroup) {

I'd say use Tag() directly since it seems no benefits to have a local for that.
Attachment #619367 - Flags: review?(surkov.alexander) → review+
(In reply to alexander :surkov from comment #3)
> Comment on attachment 619367 [details] [diff] [review]
> don't keep a ref to an atom when we don't need to
> 
> Review of attachment 619367 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: accessible/src/html/nsHTMLSelectAccessible.cpp
> @@ +190,2 @@
> >      if (tag == nsGkAtoms::option ||
> >          tag == nsGkAtoms::optgroup) {
> 
> I'd say use Tag() directly since it seems no benefits to have a local for
> that.

well, maybe a little nicer to ahve local since its shorter I can merge the two lines of the if onto 1 this way.
ok, up to you, just iirc they said to avoid locals for inlines.
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/90e9ed44fc45
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: