From 11c6f5124621cea760de1da93eddef1a5c10246c Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Sun, 26 Mar 2000 01:19:41 +0000 Subject: [PATCH] small changes to clients of string conversion APIs --- caps/src/nsCodebasePrincipal.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caps/src/nsCodebasePrincipal.cpp b/caps/src/nsCodebasePrincipal.cpp index c7917871182f..3b2a3817bfc4 100644 --- a/caps/src/nsCodebasePrincipal.cpp +++ b/caps/src/nsCodebasePrincipal.cpp @@ -135,14 +135,14 @@ nsCodebasePrincipal::GetOrigin(char **origin) nsXPIDLCString s; if (NS_FAILED(mURI->GetScheme(getter_Copies(s)))) return NS_ERROR_FAILURE; - nsAutoString t = (const char *) s; + nsAutoString t(s); t += "://"; if (NS_SUCCEEDED(mURI->GetHost(getter_Copies(s)))) { - t += s; + t.Append(s); } else if (NS_SUCCEEDED(mURI->GetSpec(getter_Copies(s)))) { // Some URIs (e.g., nsSimpleURI) don't support host. Just // get the full spec. - t = s; + t.Assign(s); } else { return NS_ERROR_FAILURE; }