diff options
author | Lei Zhang <thestig@chromium.org> | 2015-11-20 14:14:15 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-11-20 14:14:15 -0800 |
commit | 3f7dc2be794e981a2728b2ae1eddf4a32179db9a (patch) | |
tree | e162aa39f71e8e929320d97afc9bc01f14aa657e /xfa | |
parent | f288bb1ca69c372e5c0037ce130667fc8462a7af (diff) | |
download | pdfium-3f7dc2be794e981a2728b2ae1eddf4a32179db9a.tar.xz |
XFA: Fix a few fxjse warnings.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1463703002 .
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/src/fxjse/src/class.h | 4 | ||||
-rw-r--r-- | xfa/src/fxjse/src/dynprop.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/xfa/src/fxjse/src/class.h b/xfa/src/fxjse/src/class.h index 4af7c07723..90cabe6542 100644 --- a/xfa/src/fxjse/src/class.h +++ b/xfa/src/fxjse/src/class.h @@ -10,8 +10,8 @@ class CFXJSE_Context; class CFXJSE_Value;
class CFXJSE_Class {
protected:
- CFXJSE_Class(CFXJSE_Context* lpContext) - : m_pContext(lpContext), m_lpClassDefinition(nullptr) {} + CFXJSE_Class(CFXJSE_Context* lpContext)
+ : m_lpClassDefinition(nullptr), m_pContext(lpContext) {}
public:
inline CFXJSE_Context* GetContext() { return m_pContext; }
diff --git a/xfa/src/fxjse/src/dynprop.cpp b/xfa/src/fxjse/src/dynprop.cpp index b9dab225ac..413a431cae 100644 --- a/xfa/src/fxjse/src/dynprop.cpp +++ b/xfa/src/fxjse/src/dynprop.cpp @@ -347,7 +347,6 @@ static void FXJSE_V8_GenericNamedPropertySetterCallback( v8::Local<v8::Object> thisObject = info.This();
const FXJSE_CLASS* lpClass =
static_cast<FXJSE_CLASS*>(info.Data().As<v8::External>()->Value());
- v8::Isolate* pIsolate = info.GetIsolate();
v8::String::Utf8Value szPropName(property);
CFX_ByteStringC szFxPropName(*szPropName, szPropName.length());
CFXJSE_Value* lpThisValue = CFXJSE_Value::Create(info.GetIsolate());
@@ -363,7 +362,6 @@ static void FXJSE_V8_GenericNamedPropertySetterCallback( }
static void FXJSE_V8_GenericNamedPropertyEnumeratorCallback(
const v8::PropertyCallbackInfo<v8::Array>& info) {
- v8::Local<v8::Object> thisObject = info.This();
const FXJSE_CLASS* lpClass =
static_cast<FXJSE_CLASS*>(info.Data().As<v8::External>()->Value());
v8::Isolate* pIsolate = info.GetIsolate();
|