nsWebShell::GetURL(PRInt32 aHistoryIndex, const PRUnichar** aURLResult)
nsWebShell::GetURL(PRInt32 aIndex, const PRUnichar** aURLResult)
nsWebShell::GetURL(PRInt32 aHistoryIndex, const PRUnichar** aURLResult){  nsresult rv = NS_ERROR_ILLEGAL_VALUE;#ifdef OLD_HISTORY  // XXX Ownership rules for the string passed back from this  // method are not XPCOM compliant. If they were correct,   // the caller would deallocate the string.  if ((aHistoryIndex >= 0) &&      (aHistoryIndex <= mHistory.Count() - 1)) {    nsString* s = (nsString*) mHistory.ElementAt(aHistoryIndex);    if (nsnull != s) {      *aURLResult = s->GetUnicode();    }    rv = NS_OK;  }#else  if (mSHist)     return mSHist->GetURLForIndex(aHistoryIndex, aURLResult);#endif  return rv;}