summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-02-01 14:40:26 -0800
committerLei Zhang <thestig@chromium.org>2016-02-01 14:40:26 -0800
commita620372c9e1d0ff825bcbe6620fe7e1b63c769c2 (patch)
treecb3db3a42cef192492386f1aa0f01bb80335ea48 /core/include/fpdfapi
parent0841b0f37678ba4962247f5636e9390718fc027e (diff)
downloadpdfium-a620372c9e1d0ff825bcbe6620fe7e1b63c769c2.tar.xz
Remove the m_ObjVersion member variable from CPDF_Parser.
Use the gennum field in the m_ObjectInfo map instead. BUG=pdfium:111 R=weili@chromium.org Review URL: https://codereview.chromium.org/1654303002 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r--core/include/fpdfapi/fpdf_parser.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h
index 57120ec467..ffc29ef3ae 100644
--- a/core/include/fpdfapi/fpdf_parser.h
+++ b/core/include/fpdfapi/fpdf_parser.h
@@ -430,18 +430,14 @@ class CPDF_Parser {
CFX_ByteString m_Password;
struct ObjectInfo {
- ObjectInfo() : pos(0), type(0) {}
+ ObjectInfo() : pos(0), type(0), gennum(0) {}
FX_FILESIZE pos;
uint8_t type;
-// TODO(thestig): Use field below in place of |m_ObjVersion|
-#if 0
uint16_t gennum;
-#endif
};
std::map<FX_DWORD, ObjectInfo> m_ObjectInfo;
- CFX_WordArray m_ObjVersion;
CFX_FileSizeArray m_SortedOffset;
CFX_ArrayTemplate<CPDF_Dictionary*> m_Trailers;
FX_BOOL m_bVersionUpdated;