Bug 785738 Part 4: Use PRTime where appropriate under rdf/. r=ehsan a=lsblakk
authorLandry Breuil <landry@openbsd.org>
Thu, 30 Aug 2012 09:10:40 +0200
changeset 106737 788cfcab1d2aeda7f8fe64a770a164d4a1fb354f
parent 106736 b984c1076c9490badd1d58aa9c1e4e32ea09f480
child 106738 87af6afc89c6968d6c5754d896bf28f5fee24712
push idunknown
push userunknown
push dateunknown
reviewersehsan, lsblakk
bugs785738
milestone17.0a2
Bug 785738 Part 4: Use PRTime where appropriate under rdf/. r=ehsan a=lsblakk
content/xul/templates/src/nsXULContentUtils.cpp
rdf/base/idl/nsIRDFLiteral.idl
rdf/base/idl/nsIRDFService.idl
--- a/content/xul/templates/src/nsXULContentUtils.cpp
+++ b/content/xul/templates/src/nsXULContentUtils.cpp
@@ -239,25 +239,25 @@ nsXULContentUtils::GetTextForNode(nsIRDF
         if (NS_FAILED(rv)) return rv;
 
         aResult = p;
         return NS_OK;
     }
 
     nsCOMPtr<nsIRDFDate> dateLiteral = do_QueryInterface(aNode);
     if (dateLiteral) {
-        int64_t	value;
+        PRTime value;
         rv = dateLiteral->GetValue(&value);
         if (NS_FAILED(rv)) return rv;
 
         nsAutoString str;
         rv = gFormat->FormatPRTime(nullptr /* nsILocale* locale */,
                                   kDateFormatShort,
                                   kTimeFormatSeconds,
-                                  PRTime(value),
+                                  value,
                                   str);
         aResult.Assign(str);
 
         if (NS_FAILED(rv)) return rv;
 
         return NS_OK;
     }
 
--- a/rdf/base/idl/nsIRDFLiteral.idl
+++ b/rdf/base/idl/nsIRDFLiteral.idl
@@ -31,17 +31,17 @@ interface nsIRDFLiteral : nsIRDFNode {
 /**
  * A literal node in the graph, whose value is a date
  */
 [scriptable, uuid(E13A24E1-C77A-11d2-80BE-006097B76B8E)]
 interface nsIRDFDate : nsIRDFNode {
     /**
      * The date value of the literal
      */
-    readonly attribute long long Value;
+    readonly attribute PRTime Value;
 };
 
 /**
  * A literal node in the graph, whose value is an integer
  */
 [scriptable, uuid(E13A24E3-C77A-11d2-80BE-006097B76B8E)]
 interface nsIRDFInt : nsIRDFNode {
     /**
--- a/rdf/base/idl/nsIRDFService.idl
+++ b/rdf/base/idl/nsIRDFService.idl
@@ -36,17 +36,17 @@ interface nsIRDFService : nsISupports {
     /**
      * Construct an RDF literal from a Unicode string.
      */
     nsIRDFLiteral  GetLiteral(in wstring aValue);
 
     /**
      * 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.
      */
     nsIRDFInt      GetIntLiteral(in long aValue);
 
     /**
      * Construct an RDF literal from a data blob