Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc

git-svn-id: svn://10.0.0.236/trunk@88396 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
disttsc%bart.nl
2001-03-02 09:26:57 +00:00
parent 949670283e
commit d30c2be76b
167 changed files with 630 additions and 628 deletions

View File

@@ -1069,7 +1069,7 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
if(!retryHost.IsEmpty()) {
// This seems evil, since it is modifying the original URL
rv = url->SetHost(retryHost.GetBuffer());
rv = url->SetHost(retryHost.get());
if (NS_FAILED(rv)) return rv;
rv = url->GetSpec(getter_Copies(host));
@@ -1141,7 +1141,7 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
combo.AppendInt(port);
}
PRUnichar *msg = nsTextFormatter::smprintf(messageStr, combo.GetBuffer());
PRUnichar *msg = nsTextFormatter::smprintf(messageStr, combo.get());
if (!msg) return NS_ERROR_OUT_OF_MEMORY;
prompter->Alert(nsnull, msg);