return result;
return NS_STATIC_CAST(nsIWeakReference*, result);
NS_GetWeakReference( nsISupports* aInstancePtr, nsresult* aErrorPtr )  {    nsIWeakReference* result = 0;    nsGetWeakReference(aInstancePtr, aErrorPtr)(NS_GET_IID(nsIWeakReference), &result);    return result;  }