зеркало из https://github.com/mozilla/pjs.git
Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
This commit is contained in:
Родитель
c6b58669fc
Коммит
c5517e0a77
|
@ -395,7 +395,7 @@ ConvertWStringToStream(const PRUnichar* aStr,
|
|||
do_GetService(kCharsetConverterManagerCID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
|
||||
charsetStr.AssignWithConversion("UTF-8");
|
||||
charsetStr.Assign(NS_LITERAL_STRING("UTF-8"));
|
||||
rv = charsetConv->GetUnicodeEncoder(&charsetStr,
|
||||
getter_AddRefs(encoder));
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
|
|
|
@ -683,7 +683,7 @@ nsXMLHttpRequest::GetStreamForWString(const PRUnichar* aStr,
|
|||
do_GetService(kCharsetConverterManagerCID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
|
||||
charsetStr.AssignWithConversion("UTF-8");
|
||||
charsetStr.Assign(NS_LITERAL_STRING("UTF-8"));
|
||||
rv = charsetConv->GetUnicodeEncoder(&charsetStr,
|
||||
getter_AddRefs(encoder));
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче