зеркало из https://github.com/mozilla/pjs.git
Method name change.
This commit is contained in:
Родитель
9582ee162c
Коммит
31db4669be
|
@ -356,7 +356,7 @@ nsresult nsDateTimeFormatMac::FormatTMTime(nsILocale* locale,
|
|||
if(NS_SUCCEEDED(res) && decoder) {
|
||||
PRInt32 unicharLength = 0;
|
||||
PRInt32 srcLength = (PRInt32) PL_strlen(aBuffer);
|
||||
res = decoder->Length(aBuffer, 0, srcLength, &unicharLength);
|
||||
res = decoder->GetMaxLength(aBuffer, srcLength, &unicharLength);
|
||||
PRUnichar *unichars = new PRUnichar [ unicharLength ];
|
||||
|
||||
if (nsnull != unichars) {
|
||||
|
|
|
@ -148,7 +148,7 @@ nsresult nsDateTimeFormatUnix::FormatTMTime(nsILocale* locale,
|
|||
if (NS_SUCCEEDED(res) && decoder) {
|
||||
PRInt32 unicharLength = 0;
|
||||
PRInt32 srcLength = (PRInt32) PL_strlen(strOut);
|
||||
res = decoder->Length(strOut, 0, srcLength, &unicharLength);
|
||||
res = decoder->GetMaxLength(strOut, srcLength, &unicharLength);
|
||||
PRUnichar *unichars = new PRUnichar [ unicharLength ];
|
||||
|
||||
if (nsnull != unichars) {
|
||||
|
|
|
@ -238,7 +238,7 @@ nsresult nsDateTimeFormatWin::ConvertToUnicode(const char *inString, const PRInt
|
|||
if(NS_SUCCEEDED(res) && decoder) {
|
||||
PRInt32 unicharLength = 0;
|
||||
PRInt32 srcLength = inLen;
|
||||
res = decoder->Length(inString, 0, srcLength, &unicharLength);
|
||||
res = decoder->GetMaxLength(inString, srcLength, &unicharLength);
|
||||
PRUnichar *unichars = outString;
|
||||
|
||||
if (nsnull != unichars) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче