Closed
Bug 682744
Opened 14 years ago
Closed 14 years ago
Sprinkle some do_QueryObject fairy dust around the tree
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: khuey, Assigned: marco)
References
()
Details
Attachments
(1 file, 1 obsolete file)
23.60 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
Back in the days before do_QueryObject, you had to write:
nsCOMPtr<nsIFoo> = do_QueryInterface(static_cast<nsIBar>(someVariableOfAConcreteType));
These days, you can just write:
nsCOMPtr<nsIFoo> = do_QueryObject(someVariableOfAConcreteType);
The MXR query shows some usages that haven't been converted, and I'm pretty sure all of them can be converted.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → mar.castelluccio
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #556621 -
Flags: review?(khuey)
Reporter | ||
Comment 2•14 years ago
|
||
would be nice if you collapsed the lines that are now under 80 characters long ...
Assignee | ||
Comment 3•14 years ago
|
||
Collapsed the lines ;)
Attachment #556621 -
Attachment is obsolete: true
Attachment #556621 -
Flags: review?(khuey)
Attachment #556738 -
Flags: review?(khuey)
Reporter | ||
Updated•14 years ago
|
Attachment #556738 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 4•14 years ago
|
||
In my queue :-)
Updated•14 years ago
|
Flags: in-testsuite-
Comment 5•14 years ago
|
||
Updated•14 years ago
|
Target Milestone: --- → mozilla9
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•