summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-06-07 19:36:18 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-07 19:36:19 -0700
commitf27aeec59186e7d11a3a2167572617fd5ed42941 (patch)
treeaf0204ecf2b5e42d9341d7e7b245e0aa8c7b85d6 /xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp
parenta7c03c678dbd6fd4732e0cfb390cc4f462434441 (diff)
downloadpdfium-f27aeec59186e7d11a3a2167572617fd5ed42941.tar.xz
Remove various FXJSE Value methods.
This CL removes the FXJSE_Value_Set*, FXJSE_Value_To*, FXJSE_Value_Get* and FXJSE_Value_Delete* methods. Review-Url: https://codereview.chromium.org/2043153002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp
index c7f1318cda..b494a91478 100644
--- a/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp
+++ b/xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp
@@ -29,28 +29,28 @@ void Script_EventPseudoModel_StringProperty(CFXJSE_Value* pValue,
FX_BOOL bSetting) {
if (bSetting) {
CFX_ByteString bsValue;
- FXJSE_Value_ToUTF8String(pValue, bsValue);
+ pValue->ToString(bsValue);
wsValue = CFX_WideString::FromUTF8(bsValue.AsStringC());
} else {
- FXJSE_Value_SetUTF8String(pValue, FX_UTF8Encode(wsValue).AsStringC());
+ pValue->SetString(FX_UTF8Encode(wsValue).AsStringC());
}
}
void Script_EventPseudoModel_InterProperty(CFXJSE_Value* pValue,
int32_t& iValue,
FX_BOOL bSetting) {
if (bSetting) {
- iValue = FXJSE_Value_ToInteger(pValue);
+ iValue = pValue->ToInteger();
} else {
- FXJSE_Value_SetInteger(pValue, iValue);
+ pValue->SetInteger(iValue);
}
}
void Script_EventPseudoModel_BooleanProperty(CFXJSE_Value* pValue,
FX_BOOL& bValue,
FX_BOOL bSetting) {
if (bSetting)
- bValue = FXJSE_Value_ToBoolean(pValue);
+ bValue = pValue->ToBoolean();
else
- FXJSE_Value_SetBoolean(pValue, bValue);
+ pValue->SetBoolean(bValue);
}
void CScript_EventPseudoModel::Script_EventPseudoModel_Property(