summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_formcalc_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjse_formcalc_context.cpp')
-rw-r--r--fxjs/cfxjse_formcalc_context.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp
index 6ca57bb649..5319466cfa 100644
--- a/fxjs/cfxjse_formcalc_context.cpp
+++ b/fxjs/cfxjse_formcalc_context.cpp
@@ -449,7 +449,7 @@ bool PatternStringType(const ByteStringView& szPattern, uint32_t& patternType) {
}
CFXJSE_FormCalcContext* ToFormCalcContext(CFXJSE_Value* pValue) {
- CFXJSE_HostObject* pHostObj = pValue->ToHostObject(nullptr);
+ CFXJSE_HostObject* pHostObj = pValue->ToHostObject();
return pHostObj ? pHostObj->AsFormCalcContext() : nullptr;
}
@@ -4944,8 +4944,7 @@ bool CFXJSE_FormCalcContext::fm_ref_equal(CFXJSE_Value* pThis,
if (firstJSObject->IsNull() || secondJSObject->IsNull())
return false;
- return (firstJSObject->ToHostObject(nullptr) ==
- secondJSObject->ToHostObject(nullptr));
+ return firstJSObject->ToHostObject() == secondJSObject->ToHostObject();
}
// static