Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.

This commit is contained in:
peter@propagandism.org
2003-12-23 16:48:40 +00:00
parent 454dbf5f95
commit 3f9a8c352d
22 changed files with 45 additions and 51 deletions

View File

@@ -2531,7 +2531,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI, const PRUnichar *aUR
// Get the host
nsCAutoString host;
aURI->GetHost(host);
formatStrs[0].Assign(NS_ConvertUTF8toUCS2(host));
CopyUTF8toUTF16(host, formatStrs[0]);
formatStrCount = 1;
error.Assign(NS_LITERAL_STRING("dnsNotFound"));
}
@@ -2558,7 +2558,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI, const PRUnichar *aUR
// Get the host
nsCAutoString host;
aURI->GetHost(host);
formatStrs[0].Assign(NS_ConvertUTF8toUCS2(host));
CopyUTF8toUTF16(host, formatStrs[0]);
formatStrCount = 1;
error.Assign(NS_LITERAL_STRING("netTimeout"));
}