зеркало из https://github.com/mozilla/gecko-dev.git
ditching old string api in preperation for new string stuff
This commit is contained in:
Родитель
971495476f
Коммит
8d9f80d627
|
@ -871,15 +871,15 @@ nsFTPDirListingConv::DigestBufferLines(char *aBuffer, nsCAutoString &aString) {
|
||||||
|
|
||||||
// MODIFIED DATE
|
// MODIFIED DATE
|
||||||
nsString lDate;
|
nsString lDate;
|
||||||
nsStr::Initialize(lDate, eOneByte);
|
|
||||||
|
|
||||||
rv = mDateTimeFormat->FormatPRExplodedTime(mLocale, kDateFormatShort, kTimeFormatNoSeconds, &thisEntry->mMDTM, lDate);
|
rv = mDateTimeFormat->FormatPRExplodedTime(mLocale, kDateFormatShort, kTimeFormatNoSeconds, &thisEntry->mMDTM, lDate);
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
NS_DELETEXPCOM(thisEntry);
|
NS_DELETEXPCOM(thisEntry);
|
||||||
return nsnull;
|
return nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *escapedDate = nsEscape(lDate.GetBuffer(), url_Path);
|
nsCAutoString theDate(lDate);
|
||||||
|
char *escapedDate = nsEscape(theDate.GetBuffer(), url_Path);
|
||||||
|
|
||||||
aString.Append(escapedDate);
|
aString.Append(escapedDate);
|
||||||
nsAllocator::Free(escapedDate);
|
nsAllocator::Free(escapedDate);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче