зеркало из https://github.com/mozilla/gecko-dev.git
bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString -> nsISupportsCString nsISupportsWString -> nsISupportsString r=dougt, sr=jag
This commit is contained in:
Родитель
801791fc9e
Коммит
fe8bb82129
|
@ -194,7 +194,7 @@ interface nsIXMLHttpRequest : nsISupports {
|
|||
* returns only after the response has been received.
|
||||
*
|
||||
* @param body Either an instance of nsIDOMDocument, nsIInputStream
|
||||
* or a string (nsISupportsWString in the native calling
|
||||
* or a string (nsISupportsString in the native calling
|
||||
* case). This is used to populate the body of the
|
||||
* HTTP request if the HTTP request method is "POST".
|
||||
* If the parameter is a nsIDOMDocument, it is serialized.
|
||||
|
|
|
@ -1057,8 +1057,8 @@ nsXMLHttpRequest::Send(nsIVariant *aBody)
|
|||
if (NS_FAILED(rv))
|
||||
return NS_ERROR_FAILURE;
|
||||
} else {
|
||||
// nsISupportsWString?
|
||||
nsCOMPtr<nsISupportsWString> wstr(do_QueryInterface(supports));
|
||||
// nsISupportsString?
|
||||
nsCOMPtr<nsISupportsString> wstr(do_QueryInterface(supports));
|
||||
if (wstr) {
|
||||
wstr->GetData(getter_Copies(serial));
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче