On Dec 12, 3:38 pm, BAsh <[EMAIL PROTECTED]> wrote:
> NS_IMETHODIMP MyClass::DoStuff(nsIHTMLAppletElement *content) {
>         nsresult rv;
>         nsCOMPtr<nsIGenericHTMLElement> generic = 
> do_QueryInterface((nsISupports*)content, &rv);
>         if (NS_FAILED(rv)) return rv;
>
> }

While we're at it. your code doesn't always return a value. That's
broken.

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to