Index: fpdfsdk/src/javascript/Field.cpp |
diff --git a/fpdfsdk/src/javascript/Field.cpp b/fpdfsdk/src/javascript/Field.cpp |
index 959e8dcadd560a8052c387aea1a08880ae97bf06..ebd3d331f5bf0e6a4f6f3428548ab8d5c781840e 100644 |
--- a/fpdfsdk/src/javascript/Field.cpp |
+++ b/fpdfsdk/src/javascript/Field.cpp |
@@ -2741,13 +2741,8 @@ FX_BOOL Field::value(IJS_Context* cc, |
CFX_WideString swValue = pFormField->GetValue(); |
double dRet; |
- FX_BOOL bDot; |
- if (CJS_PublicMethods::ConvertStringToNumber(swValue.c_str(), dRet, |
- bDot)) { |
- if (bDot) |
- vp << dRet; |
- else |
- vp << dRet; |
+ if (CJS_PublicMethods::ConvertStringToNumber(swValue.c_str(), dRet)) { |
+ vp << dRet; |
} else { |
vp << swValue; |
} |
@@ -2769,13 +2764,8 @@ FX_BOOL Field::value(IJS_Context* cc, |
CFX_WideString swValue = pFormField->GetValue(); |
double dRet; |
- FX_BOOL bDot; |
- if (CJS_PublicMethods::ConvertStringToNumber(swValue.c_str(), dRet, |
- bDot)) { |
- if (bDot) |
- vp << dRet; |
- else |
- vp << dRet; |
+ if (CJS_PublicMethods::ConvertStringToNumber(swValue.c_str(), dRet)) { |
+ vp << dRet; |
} else { |
vp << swValue; |
} |
@@ -2790,9 +2780,7 @@ FX_BOOL Field::value(IJS_Context* cc, |
CFX_WideString swValue = pFormField->GetControl(i)->GetExportValue(); |
double dRet; |
- FX_BOOL bDotDummy; |
- if (CJS_PublicMethods::ConvertStringToNumber(swValue.c_str(), dRet, |
- bDotDummy)) { |
+ if (CJS_PublicMethods::ConvertStringToNumber(swValue.c_str(), dRet)) { |
vp << dRet; |
} else { |
vp << swValue; |