Bug 785738 Part 2: use PRTime in nsDirIndex to match the idl. r=ehsan

This commit is contained in:
Landry Breuil 2012-08-30 09:10:30 +02:00
parent 994eaecaee
commit e29b54c9f3
3 changed files with 3 additions and 3 deletions

View File

@ -68,5 +68,5 @@ nsDirIndex::SetDescription(const PRUnichar* aDescription) {
}
NS_IMPL_GETSET(nsDirIndex, Size, int64_t, mSize)
NS_IMPL_GETSET(nsDirIndex, LastModified, int64_t, mLastModified)
NS_IMPL_GETSET(nsDirIndex, LastModified, PRTime, mLastModified)

View File

@ -23,5 +23,5 @@ protected:
nsXPIDLCString mLocation;
nsString mDescription;
int64_t mSize;
int64_t mLastModified;
PRTime mLastModified;
};

View File

@ -951,7 +951,7 @@ nsIndexedToHTML::OnIndexAvailable(nsIRequest *aRequest,
pushBuffer.AppendLiteral("></td>\n <td>");
} else {
pushBuffer.AppendLiteral(" sortable-data=\"");
pushBuffer.AppendInt(t);
pushBuffer.AppendInt(static_cast<int64_t>(t));
pushBuffer.AppendLiteral("\">");
nsAutoString formatted;
mDateTime->FormatPRTime(nullptr,