summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-07-31 10:07:04 -0700
committerNico Weber <thakis@chromium.org>2014-07-31 10:07:04 -0700
commit09363c82b5f309631eed3801b3c1cb4195763dd4 (patch)
treed27fd2a18f284665837c0ba576ac3e9acc4d9e1a /fpdfsdk/src/javascript
parentc2df91c93d7d2ec4ffb2e0162d6ed865a71a15df (diff)
downloadpdfium-09363c82b5f309631eed3801b3c1cb4195763dd4.tar.xz
Fix a few more -Wreorder warnings.
No intended behavior change. BUG=pdfium:29 R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/436483002
Diffstat (limited to 'fpdfsdk/src/javascript')
-rw-r--r--fpdfsdk/src/javascript/Document.cpp6
-rw-r--r--fpdfsdk/src/javascript/JS_Runtime.cpp2
-rw-r--r--fpdfsdk/src/javascript/JS_Value.cpp5
3 files changed, 7 insertions, 6 deletions
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp
index 0c4d4f4cdf..229d9770a1 100644
--- a/fpdfsdk/src/javascript/Document.cpp
+++ b/fpdfsdk/src/javascript/Document.cpp
@@ -158,11 +158,11 @@ FX_BOOL CJS_Document::InitInstance(IFXJS_Context* cc)
/* --------------------------------- Document --------------------------------- */
Document::Document(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject),
- m_cwBaseURL(L""),
+ m_isolate(NULL),
m_pIconTree(NULL),
m_pDocument(NULL),
- m_bDelay(FALSE),
- m_isolate(NULL)
+ m_cwBaseURL(L""),
+ m_bDelay(FALSE)
{
}
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp
index 543540bd4d..be11b044ec 100644
--- a/fpdfsdk/src/javascript/JS_Runtime.cpp
+++ b/fpdfsdk/src/javascript/JS_Runtime.cpp
@@ -104,8 +104,8 @@ void CJS_RuntimeFactory::ReleaseGlobalData()
CJS_Runtime::CJS_Runtime(CPDFDoc_Environment * pApp) :
m_pApp(pApp),
m_pDocument(NULL),
- m_pFieldEventPath(NULL),
m_bBlocking(FALSE),
+ m_pFieldEventPath(NULL),
m_bRegistered(FALSE)
{
m_isolate = v8::Isolate::New();
diff --git a/fpdfsdk/src/javascript/JS_Value.cpp b/fpdfsdk/src/javascript/JS_Value.cpp
index 0217ea1374..90b324ace2 100644
--- a/fpdfsdk/src/javascript/JS_Value.cpp
+++ b/fpdfsdk/src/javascript/JS_Value.cpp
@@ -11,10 +11,11 @@
/* ---------------------------- CJS_Value ---------------------------- */
-CJS_Value::CJS_Value(v8::Isolate* isolate) : m_isolate(isolate),m_eType(VT_unknown)
+CJS_Value::CJS_Value(v8::Isolate* isolate) : m_eType(VT_unknown),m_isolate(isolate)
{
}
-CJS_Value::CJS_Value(v8::Isolate* isolate, v8::Handle<v8::Value> pValue,FXJSVALUETYPE t) :m_isolate(isolate), m_pValue(pValue) , m_eType(t)
+CJS_Value::CJS_Value(v8::Isolate* isolate, v8::Handle<v8::Value> pValue,FXJSVALUETYPE t) :
+ m_pValue(pValue), m_eType(t), m_isolate(isolate)
{
}