mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
getbuffer to tonewcstring change
This commit is contained in:
parent
7baa41ff09
commit
ddf0252fa5
@ -188,8 +188,10 @@ nsPrefMigrationProgressDialog::CreateProfileProgressDialog()
|
||||
}
|
||||
|
||||
nsIURI *uri = nsnull;
|
||||
const char *uriStr = urlString.GetBuffer();
|
||||
char *uriStr = urlString.ToNewCString();
|
||||
if (!uriStr) return NS_ERROR_OUT_OF_MEMORY;
|
||||
rv = service->NewURI(urlString, nsnull, &uri);
|
||||
nsCRT::free(uriStr);
|
||||
if (NS_FAILED(rv)) {
|
||||
DEBUG_PRINTF(PR_STDOUT, "cannot get uri\n");
|
||||
return NS_OK;
|
||||
|
@ -856,8 +856,10 @@ nsSilentDownloadTask::DownloadSelf(PRInt32 range)
|
||||
if (NS_FAILED(result)) return result;
|
||||
|
||||
nsIURI *uri = nsnull;
|
||||
const char *uriStr = mUrl.GetBuffer();
|
||||
char *uriStr = mUrl.ToNewCString();
|
||||
if (!uriStr) return NS_ERROR_OUT_OF_MEMORY;
|
||||
result = service->NewURI(uriStr, nsnull, &uri);
|
||||
nsCRT::free(uriStr);
|
||||
if (NS_FAILED(result)) return result;
|
||||
|
||||
result = uri->QueryInterface(nsIURI::GetIID(), (void**)&pURL);
|
||||
|
@ -416,8 +416,10 @@ GtkMozillaContainer::StartStream(const char *base_url, const char *action,
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsIURI *uri = nsnull;
|
||||
const char *uriStr = url_str.GetBuffer();
|
||||
char *uriStr = url_str.ToNewCString();
|
||||
if (!uriStr) return NS_ERROR_OUT_OF_MEMORY;
|
||||
rv = service->NewURI(uriStr, nsnull, &uri);
|
||||
nsCRT::uriStr);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = uri->QueryInterface(nsIURI::GetIID(), (void**)&url);
|
||||
|
Loading…
Reference in New Issue
Block a user