case eDocTitleDefDocument: *aTitle = ToNewUnicode(NS_LITERAL_STRING("Mozilla Document"));
case eDocTitleDefDocument: if (aBrandName) *aTitle = nsCRT::strdup(aBrandName);
DocumentViewerImpl::GetDisplayTitleAndURL(PrintObject* aPO,                                          nsIPrintSettings* aPrintSettings,                                          PRUnichar**       aTitle,                                           PRUnichar**       aURLStr,                                          eDocTitleDefault  aDefType){  NS_ASSERTION(aPO, "Pointer is null!");  NS_ASSERTION(aTitle, "Pointer is null!");  NS_ASSERTION(aURLStr, "Pointer is null!");  *aTitle  = nsnull;  *aURLStr = nsnull;  // First check to see if the PrintSettings has defined an alternate title  // and use that if it did  PRUnichar * docTitleStrPS = nsnull;  PRUnichar * docURLStrPS   = nsnull;  if (aPrintSettings) {    aPrintSettings->GetTitle(&docTitleStrPS);    aPrintSettings->GetDocURL(&docURLStrPS);    if (docTitleStrPS && nsCRT::strlen(docTitleStrPS) > 0) {      *aTitle  = docTitleStrPS;    }    if (docURLStrPS && nsCRT::strlen(docURLStrPS) > 0) {      *aURLStr  = docURLStrPS;    }    // short circut    if (docTitleStrPS && docURLStrPS) {      return;    }  }  if (!docURLStrPS) {    if (aPO->mDocURL) {      *aURLStr = nsCRT::strdup(aPO->mDocURL);    }  }  if (!docTitleStrPS) {    if (aPO->mDocTitle) {      *aTitle = nsCRT::strdup(aPO->mDocTitle);    } else {      switch (aDefType) {        case eDocTitleDefBlank: *aTitle = ToNewUnicode(NS_LITERAL_STRING(""));          break;        case eDocTitleDefDocument: *aTitle = ToNewUnicode(NS_LITERAL_STRING("Mozilla Document"));          break;        case eDocTitleDefURLDoc:           if (*aURLStr) {            *aTitle = nsCRT::strdup(*aURLStr);          } else {            *aTitle = ToNewUnicode(NS_LITERAL_STRING("Mozilla Document"));          }          break;        default:          break;      } // switch    }  }}