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

Side by Side Diff: core/include/fpdfapi/fpdf_objects.h

Issue 911293002: Fix uninitialized value in CFX_ByteString::FormatInteger (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | core/include/fxcrt/fx_coordinates.h » ('j') | core/include/fxcrt/fx_coordinates.h » ('J')
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 #ifndef _FPDF_OBJECTS_ 7 #ifndef _FPDF_OBJECTS_
8 #define _FPDF_OBJECTS_ 8 #define _FPDF_OBJECTS_
9 #ifndef _FXCRT_EXTENSION_ 9 #ifndef _FXCRT_EXTENSION_
10 #include "../fxcrt/fx_ext.h" 10 #include "../fxcrt/fx_ext.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 159 {
160 return FX_NEW CPDF_Number(str); 160 return FX_NEW CPDF_Number(str);
161 } 161 }
162 162
163 static CPDF_Number* Create(FX_BOOL bInteger, void* pData) 163 static CPDF_Number* Create(FX_BOOL bInteger, void* pData)
164 { 164 {
165 return FX_NEW CPDF_Number(bInteger, pData); 165 return FX_NEW CPDF_Number(bInteger, pData);
166 } 166 }
167 167
168 CPDF_Number() 168 CPDF_Number()
169 { 169 {
Tom Sepez 2015/02/10 23:17:04 nit: prefer initializer list.
170 m_Type = PDFOBJ_NUMBER; 170 m_Type = PDFOBJ_NUMBER;
171 m_Integer = 0;
171 } 172 }
172 173
173 CPDF_Number(FX_BOOL bInteger, void* pData); 174 CPDF_Number(FX_BOOL bInteger, void* pData);
174 175
175 CPDF_Number(int value); 176 CPDF_Number(int value);
176 177
177 CPDF_Number(FX_FLOAT value); 178 CPDF_Number(FX_FLOAT value);
178 179
179 CPDF_Number(FX_BSTR str); 180 CPDF_Number(FX_BSTR str);
180 181
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 } 784 }
784 protected: 785 protected:
785 786
786 CFX_MapPtrToPtr m_IndirectObjs; 787 CFX_MapPtrToPtr m_IndirectObjs;
787 788
788 IPDF_DocParser* m_pParser; 789 IPDF_DocParser* m_pParser;
789 790
790 FX_DWORD m_LastObjNum; 791 FX_DWORD m_LastObjNum;
791 }; 792 };
792 #endif 793 #endif
OLDNEW
« no previous file with comments | « no previous file | core/include/fxcrt/fx_coordinates.h » ('j') | core/include/fxcrt/fx_coordinates.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698