summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-09-01 13:41:10 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-01 13:41:11 -0700
commite0cb687c71d555b55cc30ec59c9b338a0e83f77f (patch)
tree73c1e1ecd9b1b419ac4cb752e0ba8ade519bcbe6 /core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
parenteadff195ea8a8e0d1f400bd8910873ce8e38635f (diff)
downloadpdfium-e0cb687c71d555b55cc30ec59c9b338a0e83f77f.tar.xz
Use unsigned page indexes in CPDF_HintTables.
Fix up callers from CPDF_DataAvail. Review-Url: https://codereview.chromium.org/2294383003
Diffstat (limited to 'core/fpdfapi/fpdf_parser/cpdf_hint_tables.h')
-rw-r--r--core/fpdfapi/fpdf_parser/cpdf_hint_tables.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h b/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
index cda0925de8..1943c79f44 100644
--- a/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
+++ b/core/fpdfapi/fpdf_parser/cpdf_hint_tables.h
@@ -22,13 +22,13 @@ class CPDF_HintTables {
CPDF_HintTables(CPDF_DataAvail* pDataAvail, CPDF_Dictionary* pLinearized);
virtual ~CPDF_HintTables();
- bool GetPagePos(int index,
+ bool GetPagePos(uint32_t index,
FX_FILESIZE* szPageStartPos,
FX_FILESIZE* szPageLength,
uint32_t* dwObjNum);
CPDF_DataAvail::DocAvailStatus CheckPage(
- int index,
+ uint32_t index,
CPDF_DataAvail::DownloadHints* pHints);
bool LoadHintStream(CPDF_Stream* pHintStream);
@@ -36,7 +36,6 @@ class CPDF_HintTables {
protected:
bool ReadPageHintTable(CFX_BitStream* hStream);
bool ReadSharedObjHintTable(CFX_BitStream* hStream, uint32_t offset);
- uint32_t GetItemLength(int index, const std::vector<FX_FILESIZE>& szArray);
private:
// Tests can override.
@@ -50,6 +49,9 @@ class CPDF_HintTables {
// Helper for the ReadPrimaryHintStream methods above.
int ReadPrimaryHintStream(int index) const;
+ uint32_t GetItemLength(uint32_t index,
+ const std::vector<FX_FILESIZE>& szArray);
+
// Owner, outlives this object.
CPDF_DataAvail* const m_pDataAvail;