diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-26 10:14:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-26 10:14:00 -0700 |
commit | e9885e77a7daf7a8d45eaf0290a1ea5f208c24c6 (patch) | |
tree | 0d5006c9b2ab336e785a4a812f96a16ab6d527f5 /xfa/fxjse/class.cpp | |
parent | d2b93dfa15dbb7fd42b7cf05fc248d7f5c87f1ef (diff) | |
download | pdfium-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/class.cpp')
-rw-r--r-- | xfa/fxjse/class.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/xfa/fxjse/class.cpp b/xfa/fxjse/class.cpp index b7637455fd..6d0a719821 100644 --- a/xfa/fxjse/class.cpp +++ b/xfa/fxjse/class.cpp @@ -24,11 +24,10 @@ static void FXJSE_V8SetterCallback_Wrapper( v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info); -FXJSE_HCLASS FXJSE_DefineClass(CFXJSE_Context* pContext, - const FXJSE_CLASS* lpClass) { +CFXJSE_Class* FXJSE_DefineClass(CFXJSE_Context* pContext, + const FXJSE_CLASS* lpClass) { ASSERT(pContext); - return reinterpret_cast<FXJSE_HCLASS>( - CFXJSE_Class::Create(pContext, lpClass, FALSE)); + return CFXJSE_Class::Create(pContext, lpClass, FALSE); } static void FXJSE_V8FunctionCallback_Wrapper( @@ -182,7 +181,7 @@ CFX_ByteString CFXJSE_Arguments::GetUTF8String(int32_t index) const { return CFX_ByteString(*szStringVal); } -void* CFXJSE_Arguments::GetObject(int32_t index, FXJSE_HCLASS hClass) const { +void* CFXJSE_Arguments::GetObject(int32_t index, CFXJSE_Class* pClass) const { const CFXJSE_ArgumentsImpl* lpArguments = reinterpret_cast<const CFXJSE_ArgumentsImpl* const>(this); v8::Local<v8::Value> hValue = (*lpArguments->m_pInfo)[index]; @@ -190,8 +189,7 @@ void* CFXJSE_Arguments::GetObject(int32_t index, FXJSE_HCLASS hClass) const { if (!hValue->IsObject()) { return NULL; } - CFXJSE_Class* lpClass = reinterpret_cast<CFXJSE_Class*>(hClass); - return FXJSE_RetrieveObjectBinding(hValue.As<v8::Object>(), lpClass); + return FXJSE_RetrieveObjectBinding(hValue.As<v8::Object>(), pClass); } FXJSE_HVALUE CFXJSE_Arguments::GetReturnValue() { |