Bug 785738 Part 4: Use PRTime where appropriate under rdf/. r=ehsan

This commit is contained in:
Landry Breuil 2012-08-30 09:10:40 +02:00
parent 3f08ff498e
commit ab140edff0
3 changed files with 4 additions and 4 deletions

View File

@ -244,7 +244,7 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsAString& aResult)
nsCOMPtr<nsIRDFDate> dateLiteral = do_QueryInterface(aNode);
if (dateLiteral) {
int64_t value;
PRTime value;
rv = dateLiteral->GetValue(&value);
if (NS_FAILED(rv)) return rv;
@ -252,7 +252,7 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsAString& aResult)
rv = gFormat->FormatPRTime(nullptr /* nsILocale* locale */,
kDateFormatShort,
kTimeFormatSeconds,
PRTime(value),
value,
str);
aResult.Assign(str);

View File

@ -36,7 +36,7 @@ interface nsIRDFDate : nsIRDFNode {
/**
* The date value of the literal
*/
readonly attribute long long Value;
readonly attribute PRTime Value;
};
/**

View File

@ -41,7 +41,7 @@ interface nsIRDFService : nsISupports {
/**
* Construct an RDF literal from a PRTime.
*/
nsIRDFDate GetDateLiteral(in long long aValue);
nsIRDFDate GetDateLiteral(in PRTime aValue);
/**
* Construct an RDF literal from an int.