r=me, sr=jag
Due to a bug in OS/2 compiler handling of temporaries in a conditional, we need to split this out.
Need this ASAP, Os/2 mail is DOA
Incidentally, I'll point out that this code is wrong anyway because different countries write kb in different ways (kb, KB, Kb)
This commit is contained in:
mkaply%us.ibm.com 2002-11-09 15:28:46 +00:00
Родитель b4421910e1
Коммит 4defc1ce1a
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -1948,7 +1948,15 @@ nsMsgFolderDataSource::GetFolderSizeNode(PRInt32 aFolderSize, nsIRDFNode **aNode
folderSize /= 1024; // normalize into k;
PRBool sizeInMB = (folderSize > 1024);
sizeString.AppendInt((sizeInMB) ? folderSize / 1024 : folderSize);
sizeString.Append((sizeInMB) ? NS_LITERAL_STRING(" MB") : NS_LITERAL_STRING(" kb"));
/* On OS/2, we have an issue where temporaries get destructed in */
/* conditionals. Solution is to break it out */
nsAutoString units;
if (sizeInMB) {
units = NS_LITERAL_STRING(" MB");
} else {
units = NS_LITERAL_STRING(" kb");
}
sizeString.Append(units);
createNode(sizeString.get(), aNode, getRDFService());
}
return NS_OK;