Closed
Bug 7389
Opened 26 years ago
Closed 25 years ago
CID used in QueryInterface and not IID
Categories
(Core :: XUL, defect, P3)
Tracking
()
VERIFIED
FIXED
M9
People
(Reporter: bruce, Assigned: pavlov)
Details
Note that there is no nsIWindow to be returning a cast to here.
nsresult nsWindow::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
static NS_DEFINE_IID(kCWindow, NS_WINDOW_CID);
if (aIID.Equals(kCWindow)) {
*aInstancePtr = (void*) ((nsWindow*)this);
AddRef();
return NS_OK;
}
return nsWidget::QueryInterface(aIID,aInstancePtr);
}
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M9
Assignee | ||
Comment 1•25 years ago
|
||
there was no need for a QueryInterface in this code, so i removed it. marking
fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•