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)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
Details
Attachments
(1 file)
|
26.88 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
This is all older code, so the performance gain is not huge, but still.
Attachment #8578009 -
Flags: review?(ehsan)
Comment 2•11 years ago
|
||
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+
Comment 3•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•