nsCOMPtr<nsIPrintSettings> printSettings; #ifdef NS_DEBUG
DocumentViewerImpl::Print(PRBool            aSilent,                          FILE *            aDebugFile,                           nsIPrintSettings* aPrintSettings){  nsCOMPtr<nsIPrintSettings> printSettings;#ifdef NS_DEBUG  nsresult rv = NS_ERROR_FAILURE;  mDebugFile = aDebugFile;  // if they don't pass in a PrintSettings, then make one  // it will have all the default values  printSettings = aPrintSettings;  nsCOMPtr<nsIPrintOptions> printOptions = do_GetService(kPrintOptionsCID, &rv);  if (NS_SUCCEEDED(rv)) {    // if they don't pass in a PrintSettings, then make one    if (printSettings == nsnull) {      printOptions->CreatePrintSettings(getter_AddRefs(printSettings));    }    NS_ASSERTION(printSettings, "You can't PrintPreview without a PrintSettings!");  }  if (printSettings) printSettings->SetPrintSilent(aSilent);#endif  return Print(printSettings, nsnull);  }