mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
remove *WithConversion from mac embedding code
261241 r=pink sr=darin
This commit is contained in:
parent
fab1a7c09e
commit
e600b54a04
@ -570,9 +570,8 @@ const char kDirServiceContractID[] = "@mozilla.org/file/directory_service;1";
|
||||
nsAutoString urlStr;
|
||||
location->GetHref(urlStr);
|
||||
#warning fix me
|
||||
nsCAutoString urlCStr; urlCStr.AssignWithConversion(urlStr);
|
||||
nsCOMPtr<nsIURI> url;
|
||||
nsresult rv = NS_NewURI(getter_AddRefs(url), urlCStr.get());
|
||||
nsresult rv = NS_NewURI(getter_AddRefs(url), urlStr);
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
|
@ -279,17 +279,15 @@ NS_IMETHODIMP CWebBrowserChrome::OnLocationChange(nsIWebProgress* aWebProgress,
|
||||
{
|
||||
NS_ENSURE_TRUE(mBrowserWindow, NS_OK);
|
||||
|
||||
char *buf = nsnull;
|
||||
|
||||
nsCAutoString buf;
|
||||
if (location)
|
||||
location->GetSpec(&buf);
|
||||
location->GetSpec(buf);
|
||||
|
||||
nsAutoString tmp; tmp.AssignWithConversion(buf);
|
||||
nsAutoString tmp;
|
||||
CopyUTF8toUTF16(buf, tmp);
|
||||
mBrowserWindow->SetLocation(tmp);
|
||||
|
||||
if (buf)
|
||||
Recycle(buf);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user