Closed Bug 7389 Opened 25 years ago Closed 25 years ago

CID used in QueryInterface and not IID

Categories

(Core :: XUL, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

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);
}
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M9
there was no need for a QueryInterface in this code, so i removed it.  marking
fixed.
Status: RESOLVED → VERIFIED
code level fix, marking verified. (bruce, reopen if you disagree)
Blocks: 12833
No longer blocks: 12833
You need to log in before you can comment on or make changes to this bug.