1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
$NetBSD: patch-cn,v 1.4 2007/07/26 08:50:17 ghen Exp $
--- extensions/transformiix/source/xpath/XFormsFunctionCall.cpp.orig 2007-05-03 03:37:36.000000000 +0200
+++ extensions/transformiix/source/xpath/XFormsFunctionCall.cpp
@@ -104,7 +104,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
res = (res/i);
}
else {
- res = Double::NaN;
+ res = Double::NaN();
}
return aContext->recycler()->getNumberResult(res, aResult);
}
@@ -159,7 +159,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
NS_ENSURE_SUCCESS(rv, rv);
PRInt32 result = 0;
- double res = Double::NaN;
+ double res = Double::NaN();
nsresult rv = xformsService->GetDaysFromDateTime(date, &result);
if (NS_SUCCEEDED(rv)) {
res = result;
@@ -211,7 +211,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
NS_ENSURE_SUCCESS(rv, rv);
PRInt32 index = 0;
- double res = Double::NaN;
+ double res = Double::NaN();
rv = xformsService->GetRepeatIndexById(mNode, indexId, &index);
NS_ENSURE_SUCCESS(rv, rv);
@@ -344,7 +344,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
getter_AddRefs(nodes));
NS_ENSURE_SUCCESS(rv, rv);
- double res = Double::NaN;
+ double res = Double::NaN();
PRInt32 i;
for (i = 0; i < nodes->size(); ++i) {
double test;
@@ -352,7 +352,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
txXPathNodeUtils::appendNodeValue(nodes->get(i), resultStr);
test = Double::toDouble(resultStr);
if (Double::isNaN(test)) {
- res = Double::NaN;
+ res = Double::NaN();
break;
}
if (test > res || i == 0) {
@@ -372,7 +372,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
getter_AddRefs(nodes));
NS_ENSURE_SUCCESS(rv, rv);
- double res = Double::NaN;
+ double res = Double::NaN();
PRInt32 i;
for (i = 0; i < nodes->size(); ++i) {
double test;
@@ -380,7 +380,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
txXPathNodeUtils::appendNodeValue(nodes->get(i), resultStr);
test = Double::toDouble(resultStr);
if (Double::isNaN(test)) {
- res = Double::NaN;
+ res = Double::NaN();
break;
}
if ((test < res) || (i==0)) {
@@ -403,7 +403,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
NS_ENSURE_SUCCESS(rv, rv);
PRInt32 result = 0;
- double res = Double::NaN;
+ double res = Double::NaN();
nsresult rv = xformsService->GetMonths(duration, &result);
if (NS_SUCCEEDED(rv)) {
res = result;
@@ -479,7 +479,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
// up the chain
return rv;
}
- res = Double::NaN;
+ res = Double::NaN();
}
return aContext->recycler()->getNumberResult(res, aResult);
@@ -504,7 +504,7 @@ XFormsFunctionCall::evaluate(txIEvalCont
// up the chain
return rv;
}
- res = Double::NaN;
+ res = Double::NaN();
}
return aContext->recycler()->getNumberResult(res, aResult);
|