Index: fpdfsdk/src/javascript/util.cpp |
diff --git a/fpdfsdk/src/javascript/util.cpp b/fpdfsdk/src/javascript/util.cpp |
index 30df53ea7292ee4a5010fd070179d7301a2ceac9..cb9c9b22317e07a4d90707c3e7835ddc6ff010ae 100644 |
--- a/fpdfsdk/src/javascript/util.cpp |
+++ b/fpdfsdk/src/javascript/util.cpp |
@@ -105,7 +105,7 @@ int util::ParstDataType(std::wstring* sFormat) { |
return UTIL_STRING; |
} |
if (c == L'.' || c == L'+' || c == L'-' || c == L'#' || c == L' ' || |
- CJS_PublicMethods::IsDigit(c)) { |
+ FXSYS_iswdigit(c)) { |
continue; |
} |
break; |
@@ -502,8 +502,7 @@ FX_BOOL util::scand(IJS_Context* cc, |
CFX_WideString sDate = params[1].ToCFXWideString(); |
double dDate = JS_GetDateTime(); |
if (sDate.GetLength() > 0) { |
- FX_BOOL bWrongFormat = FALSE; |
- dDate = CJS_PublicMethods::MakeRegularDate(sDate, sFormat, bWrongFormat); |
+ dDate = CJS_PublicMethods::MakeRegularDate(sDate, sFormat, nullptr); |
} |
if (!JS_PortIsNan(dDate)) { |