diff options
author | Nico Weber <thakis@chromium.org> | 2014-07-31 10:07:04 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-07-31 10:07:04 -0700 |
commit | 09363c82b5f309631eed3801b3c1cb4195763dd4 (patch) | |
tree | d27fd2a18f284665837c0ba576ac3e9acc4d9e1a /fpdfsdk | |
parent | c2df91c93d7d2ec4ffb2e0162d6ed865a71a15df (diff) | |
download | pdfium-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')
-rw-r--r-- | fpdfsdk/include/javascript/Document.h | 2 | ||||
-rw-r--r-- | fpdfsdk/src/fsdk_mgr.cpp | 13 | ||||
-rw-r--r-- | fpdfsdk/src/fxedit/fxet_list.cpp | 8 | ||||
-rw-r--r-- | fpdfsdk/src/javascript/Document.cpp | 6 | ||||
-rw-r--r-- | fpdfsdk/src/javascript/JS_Runtime.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/src/javascript/JS_Value.cpp | 5 | ||||
-rw-r--r-- | fpdfsdk/src/pdfwindow/PWL_Note.cpp | 6 |
7 files changed, 24 insertions, 18 deletions
diff --git a/fpdfsdk/include/javascript/Document.h b/fpdfsdk/include/javascript/Document.h index ca8b51b88c..764bbbc102 100644 --- a/fpdfsdk/include/javascript/Document.h +++ b/fpdfsdk/include/javascript/Document.h @@ -41,7 +41,7 @@ class Field; struct IconElement { - IconElement() : IconName(L""), IconStream(NULL), NextIcon(NULL){} + IconElement() : IconName(L""), NextIcon(NULL), IconStream(NULL) {} virtual ~IconElement() { } diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp index 9052c37d02..52173b4c96 100644 --- a/fpdfsdk/src/fsdk_mgr.cpp +++ b/fpdfsdk/src/fsdk_mgr.cpp @@ -218,9 +218,14 @@ CJS_RuntimeFactory* GetJSRuntimeFactory() return &s_JSRuntimeFactory; } -CPDFDoc_Environment::CPDFDoc_Environment(CPDF_Document * pDoc):m_pInfo(NULL),m_pIFormFiller(NULL), - m_pAnnotHandlerMgr(NULL),m_pActionHandler(NULL),m_pJSRuntime(NULL), - m_pSDKDoc(NULL), m_pPDFDoc(pDoc) +CPDFDoc_Environment::CPDFDoc_Environment(CPDF_Document* pDoc) : + m_pAnnotHandlerMgr(NULL), + m_pActionHandler(NULL), + m_pJSRuntime(NULL), + m_pInfo(NULL), + m_pSDKDoc(NULL), + m_pPDFDoc(pDoc), + m_pIFormFiller(NULL) { m_pSysHandler = NULL; @@ -595,7 +600,7 @@ CFX_WideString CPDFSDK_Document::GetPath() } -CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,CPDF_Page* page):m_pSDKDoc(pSDKDoc),m_page(page) +CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,CPDF_Page* page):m_page(page),m_pSDKDoc(pSDKDoc) { CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm(); if(pInterForm) diff --git a/fpdfsdk/src/fxedit/fxet_list.cpp b/fpdfsdk/src/fxedit/fxet_list.cpp index 63aee1b253..64ed694d12 100644 --- a/fpdfsdk/src/fxedit/fxet_list.cpp +++ b/fpdfsdk/src/fxedit/fxet_list.cpp @@ -119,7 +119,7 @@ CFX_WideString CFX_ListItem::GetText() const /* ------------------------------------ CFX_List --------------------------------- */ -CFX_List::CFX_List() : m_pFontMap(NULL), m_fFontSize(0.0f), m_bMultiple(FALSE) +CFX_List::CFX_List() : m_fFontSize(0.0f), m_pFontMap(NULL), m_bMultiple(FALSE) { } @@ -507,12 +507,12 @@ void CPLST_Select::Done() /* ------------------------------------ CFX_ListCtrl --------------------------------- */ CFX_ListCtrl::CFX_ListCtrl() : m_pNotify(NULL), + m_bNotifyFlag(FALSE), m_ptScrollPos(0.0f,0.0f), m_nSelItem(-1), m_nFootIndex(-1), - m_bCtrlSel(FALSE), - m_nCaretIndex(-1), - m_bNotifyFlag(FALSE) + m_bCtrlSel(FALSE), + m_nCaretIndex(-1) { } 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) { } diff --git a/fpdfsdk/src/pdfwindow/PWL_Note.cpp b/fpdfsdk/src/pdfwindow/PWL_Note.cpp index b04b0f5003..b0028b6c66 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Note.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Note.cpp @@ -681,10 +681,10 @@ void CPWL_Note_Contents::EnableRead(FX_BOOL bEnabled) /* ---------------------------------- CPWL_NoteItem ---------------------------------- */ CPWL_NoteItem::CPWL_NoteItem() : - m_pPrivateData(NULL), m_pSubject(NULL), m_pDateTime(NULL), m_pContents(NULL), + m_pPrivateData(NULL), m_sAuthor(L""), m_fOldItemHeight(0.0f), m_bSizeChanged(FALSE), @@ -1205,13 +1205,13 @@ CPWL_Note::CPWL_Note(IPopup_Note* pPopupNote, IPWL_NoteNotify* pNoteNotify, IPWL m_pAuthor(NULL), m_pIcon(NULL), m_pCloseBox(NULL), - m_pContentsBar(NULL), m_pLBBox(NULL), m_pRBBox(NULL), + m_pContentsBar(NULL), m_pOptions(NULL), + m_pNoteNotify(pNoteNotify), m_bResizing(FALSE), m_rcCaption(0,0,0,0), - m_pNoteNotify(pNoteNotify), m_bEnalbleNotify(TRUE), m_pPopupNote(pPopupNote) { |