From ab140edff02921103c3a51fdc7b36bd4d2c8395a Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Thu, 30 Aug 2012 09:10:40 +0200 Subject: [PATCH] Bug 785738 Part 4: Use PRTime where appropriate under rdf/. r=ehsan --- content/xul/templates/src/nsXULContentUtils.cpp | 4 ++-- rdf/base/idl/nsIRDFLiteral.idl | 2 +- rdf/base/idl/nsIRDFService.idl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/xul/templates/src/nsXULContentUtils.cpp b/content/xul/templates/src/nsXULContentUtils.cpp index 19491ae37cff..5f7183493c9c 100644 --- a/content/xul/templates/src/nsXULContentUtils.cpp +++ b/content/xul/templates/src/nsXULContentUtils.cpp @@ -244,7 +244,7 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsAString& aResult) nsCOMPtr 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); diff --git a/rdf/base/idl/nsIRDFLiteral.idl b/rdf/base/idl/nsIRDFLiteral.idl index 8bd2c53073d8..33f618afb8e8 100644 --- a/rdf/base/idl/nsIRDFLiteral.idl +++ b/rdf/base/idl/nsIRDFLiteral.idl @@ -36,7 +36,7 @@ interface nsIRDFDate : nsIRDFNode { /** * The date value of the literal */ - readonly attribute long long Value; + readonly attribute PRTime Value; }; /** diff --git a/rdf/base/idl/nsIRDFService.idl b/rdf/base/idl/nsIRDFService.idl index 4c508aef0ba0..08023feab7ea 100644 --- a/rdf/base/idl/nsIRDFService.idl +++ b/rdf/base/idl/nsIRDFService.idl @@ -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.