diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 1e8504d5c25..7053fe0a745 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1720,7 +1720,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, * May regress in other situations. * What a hack */ - nsAutoString urlstr = spec; + nsAutoString urlstr = (const char *) spec; res = NS_NewURI(getter_AddRefs(newURI), urlstr, nsnull); } diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 1e8504d5c25..7053fe0a745 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1720,7 +1720,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec, * May regress in other situations. * What a hack */ - nsAutoString urlstr = spec; + nsAutoString urlstr = (const char *) spec; res = NS_NewURI(getter_AddRefs(newURI), urlstr, nsnull); }