summaryrefslogtreecommitdiff
path: root/xfa/fxjse/value.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-26 10:14:00 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-26 10:14:00 -0700
commite9885e77a7daf7a8d45eaf0290a1ea5f208c24c6 (patch)
tree0d5006c9b2ab336e785a4a812f96a16ab6d527f5 /xfa/fxjse/value.cpp
parentd2b93dfa15dbb7fd42b7cf05fc248d7f5c87f1ef (diff)
downloadpdfium-e9885e77a7daf7a8d45eaf0290a1ea5f208c24c6.tar.xz
Replace FXJSE_HCLASS with CFXJSE_Class*
This CL removes FXJSE_HCLASS and replaces with CFXJSE_Class*. All variables have been updated to the new type. Review-Url: https://codereview.chromium.org/2014213002
Diffstat (limited to 'xfa/fxjse/value.cpp')
-rw-r--r--xfa/fxjse/value.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/xfa/fxjse/value.cpp b/xfa/fxjse/value.cpp
index c23e12c32f..a9f73b2755 100644
--- a/xfa/fxjse/value.cpp
+++ b/xfa/fxjse/value.cpp
@@ -72,9 +72,8 @@ int32_t FXJSE_Value_ToInteger(FXJSE_HVALUE hValue) {
return reinterpret_cast<CFXJSE_Value*>(hValue)->ToInteger();
}
-void* FXJSE_Value_ToObject(FXJSE_HVALUE hValue, FXJSE_HCLASS hClass) {
- CFXJSE_Class* lpClass = reinterpret_cast<CFXJSE_Class*>(hClass);
- return reinterpret_cast<CFXJSE_Value*>(hValue)->ToObject(lpClass);
+void* FXJSE_Value_ToObject(FXJSE_HVALUE hValue, CFXJSE_Class* pClass) {
+ return reinterpret_cast<CFXJSE_Value*>(hValue)->ToObject(pClass);
}
void FXJSE_Value_SetUndefined(FXJSE_HVALUE hValue) {
@@ -108,14 +107,13 @@ void FXJSE_Value_SetDouble(FXJSE_HVALUE hValue, double dDouble) {
void FXJSE_Value_SetObject(FXJSE_HVALUE hValue,
void* lpObject,
- FXJSE_HCLASS hClass) {
+ CFXJSE_Class* pClass) {
CFXJSE_Value* lpValue = reinterpret_cast<CFXJSE_Value*>(hValue);
- CFXJSE_Class* lpClass = reinterpret_cast<CFXJSE_Class*>(hClass);
- if (!lpClass) {
+ if (!pClass) {
ASSERT(!lpObject);
lpValue->SetJSObject();
} else {
- lpValue->SetHostObject(lpObject, lpClass);
+ lpValue->SetHostObject(lpObject, pClass);
}
}