Closed Bug 1143651 Opened 11 years ago Closed 11 years ago

don't use CallQueryInterface when the compiler can do the cast for us

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

No description provided.
This is all older code, so the performance gain is not huge, but still.
Attachment #8578009 - Flags: review?(ehsan)
Comment on attachment 8578009 [details] [diff] [review] don't use CallQueryInterface when the compiler can do the cast for us Review of attachment 8578009 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/xbl/nsXBLContentSink.cpp @@ -39,5 @@ > NS_ENSURE_ARG_POINTER(aResult); > > - nsXBLContentSink* it = new nsXBLContentSink(); > - > - nsCOMPtr<nsIXMLContentSink> kungFuDeathGrip = it; This code is laughable!
Attachment #8578009 - Flags: review?(ehsan) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: