Fix build warnings (rename 'tm' to 'value).

This commit is contained in:
slamm%netscape.com 1999-09-18 02:15:00 +00:00
parent 04e901e2a5
commit 35951bb528
2 changed files with 6 additions and 6 deletions

View File

@ -441,14 +441,14 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsString& aResult)
nsCOMPtr<nsIRDFDate> dateLiteral = do_QueryInterface(aNode);
if (dateLiteral) {
PRInt64 tm;
rv = dateLiteral->GetValue(&tm);
PRInt64 value;
rv = dateLiteral->GetValue(&value);
if (NS_FAILED(rv)) return rv;
rv = gFormat->FormatPRTime(nsnull /* nsILocale* locale */,
kDateFormatShort,
kTimeFormatSeconds,
PRTime(tm),
PRTime(value),
aResult);
if (NS_FAILED(rv)) return rv;

View File

@ -441,14 +441,14 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsString& aResult)
nsCOMPtr<nsIRDFDate> dateLiteral = do_QueryInterface(aNode);
if (dateLiteral) {
PRInt64 tm;
rv = dateLiteral->GetValue(&tm);
PRInt64 value;
rv = dateLiteral->GetValue(&value);
if (NS_FAILED(rv)) return rv;
rv = gFormat->FormatPRTime(nsnull /* nsILocale* locale */,
kDateFormatShort,
kTimeFormatSeconds,
PRTime(tm),
PRTime(value),
aResult);
if (NS_FAILED(rv)) return rv;