nsCOMPtr<nsIScriptGlobalObject> scriptGlobalObject = do_QueryInterface(aDOMWindow, &status);
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aDOMWindow, &status);
Test06_nsCOMPtr_optimized(nsIDOMWindowInternal* aDOMWindow, nsCOMPtr<nsIBaseWindow>* aBaseWindow)    // m300, w176/182{//    if (!aDOMWindow)//      return NS_ERROR_NULL_POINTER;  nsresult status;  nsCOMPtr<nsIScriptGlobalObject> scriptGlobalObject = do_QueryInterface(aDOMWindow, &status);  nsIDocShell* temp0 = 0;  if (scriptGlobalObject)    scriptGlobalObject->GetDocShell(&temp0);  (*aBaseWindow) = do_QueryInterface(nsnull, &status);//    return status;}