Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 static CPDF_Number* Create(FX_BSTR str) | 158 static CPDF_Number* Create(FX_BSTR str) |
| 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(): m_Integer(0) |
| 169 { | 169 { |
| 170 m_Type = PDFOBJ_NUMBER; | 170 m_Type = PDFOBJ_NUMBER; |
|
Tom Sepez
2015/02/11 00:04:53
initialize m_type the same way.
Tom Sepez
2015/02/11 00:07:09
Argh. Its in the base class. Which means that th
jun_fang
2015/02/11 00:15:07
I tried to fix it in the way that you proposed. Bu
| |
| 171 } | 171 } |
| 172 | 172 |
| 173 CPDF_Number(FX_BOOL bInteger, void* pData); | 173 CPDF_Number(FX_BOOL bInteger, void* pData); |
| 174 | 174 |
| 175 CPDF_Number(int value); | 175 CPDF_Number(int value); |
| 176 | 176 |
| 177 CPDF_Number(FX_FLOAT value); | 177 CPDF_Number(FX_FLOAT value); |
| 178 | 178 |
| 179 CPDF_Number(FX_BSTR str); | 179 CPDF_Number(FX_BSTR str); |
| 180 | 180 |
| 181 FX_BOOL Identical(CPDF_Number* pOther) c onst; | 181 FX_BOOL Identical(CPDF_Number* pOther) c onst; |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 783 } | 783 } |
| 784 protected: | 784 protected: |
| 785 | 785 |
| 786 CFX_MapPtrToPtr m_IndirectObjs; | 786 CFX_MapPtrToPtr m_IndirectObjs; |
| 787 | 787 |
| 788 IPDF_DocParser* m_pParser; | 788 IPDF_DocParser* m_pParser; |
| 789 | 789 |
| 790 FX_DWORD m_LastObjNum; | 790 FX_DWORD m_LastObjNum; |
| 791 }; | 791 }; |
| 792 #endif | 792 #endif |
| OLD | NEW |