Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: fpdfsdk/src/javascript/Document.cpp

Issue 436483002: Fix a few more -Wreorder warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fxedit/fxet_list.cpp ('k') | fpdfsdk/src/javascript/JS_Runtime.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../include/javascript/JavaScript.h" 7 #include "../../include/javascript/JavaScript.h"
8 #include "../../include/javascript/IJavaScript.h" 8 #include "../../include/javascript/IJavaScript.h"
9 #include "../../include/javascript/JS_Define.h" 9 #include "../../include/javascript/JS_Define.h"
10 #include "../../include/javascript/JS_Object.h" 10 #include "../../include/javascript/JS_Object.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 ASSERT(pDoc != NULL); 151 ASSERT(pDoc != NULL);
152 152
153 pDoc->AttachDoc(pContext->GetReaderDocument()); 153 pDoc->AttachDoc(pContext->GetReaderDocument());
154 pDoc->SetIsolate(pContext->GetJSRuntime()->GetIsolate()); 154 pDoc->SetIsolate(pContext->GetJSRuntime()->GetIsolate());
155 return TRUE; 155 return TRUE;
156 }; 156 };
157 157
158 /* --------------------------------- Document --------------------------------- */ 158 /* --------------------------------- Document --------------------------------- */
159 159
160 Document::Document(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject), 160 Document::Document(CJS_Object* pJSObject) : CJS_EmbedObj(pJSObject),
161 » m_cwBaseURL(L""), 161 » m_isolate(NULL),
162 m_pIconTree(NULL), 162 m_pIconTree(NULL),
163 m_pDocument(NULL), 163 m_pDocument(NULL),
164 » m_bDelay(FALSE), 164 » m_cwBaseURL(L""),
165 » m_isolate(NULL) 165 » m_bDelay(FALSE)
166 { 166 {
167 } 167 }
168 168
169 Document::~Document() 169 Document::~Document()
170 { 170 {
171 if (m_pIconTree) 171 if (m_pIconTree)
172 { 172 {
173 m_pIconTree->DeleteIconTree(); 173 m_pIconTree->DeleteIconTree();
174 delete m_pIconTree; 174 delete m_pIconTree;
175 m_pIconTree = NULL; 175 m_pIconTree = NULL;
(...skipping 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 2525
2526 void Document::DoAnnotDelay() 2526 void Document::DoAnnotDelay()
2527 { 2527 {
2528 CFX_DWordArray DelArray; 2528 CFX_DWordArray DelArray;
2529 2529
2530 for (int j=DelArray.GetSize()-1; j>=0; j--) 2530 for (int j=DelArray.GetSize()-1; j>=0; j--)
2531 { 2531 {
2532 m_DelayData.RemoveAt(DelArray[j]); 2532 m_DelayData.RemoveAt(DelArray[j]);
2533 } 2533 }
2534 } 2534 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fxedit/fxet_list.cpp ('k') | fpdfsdk/src/javascript/JS_Runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698