diff options
author | thestig <thestig@chromium.org> | 2016-08-15 06:05:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-15 06:05:16 -0700 |
commit | 845cac29d76e03960e1de9a019bba67ced84792a (patch) | |
tree | 29ff7d27bc555753567818dc0e42ec9523d1a68e /core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp | |
parent | 9fe6f3ad47ca099efe5ae18aabfae6594a1e0329 (diff) | |
download | pdfium-845cac29d76e03960e1de9a019bba67ced84792a.tar.xz |
Clean up CPDF_HintTables.
Review-Url: https://codereview.chromium.org/2241153002
Diffstat (limited to 'core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp')
-rw-r--r-- | core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp b/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp index cc5b529b45..94795fd60e 100644 --- a/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp +++ b/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp @@ -7,6 +7,8 @@ #include "core/fpdfapi/fpdf_parser/include/cpdf_data_avail.h" #include <algorithm> +#include <memory> +#include <utility> #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" #include "core/fpdfapi/fpdf_parser/fpdf_parser_utility.h" @@ -1776,8 +1778,8 @@ CPDF_Dictionary* CPDF_DataAvail::GetPage(int index) { FX_FILESIZE szPageStartPos = 0; FX_FILESIZE szPageLength = 0; uint32_t dwObjNum = 0; - FX_BOOL bPagePosGot = m_pHintTables->GetPagePos(index, szPageStartPos, - szPageLength, dwObjNum); + bool bPagePosGot = m_pHintTables->GetPagePos(index, &szPageStartPos, + &szPageLength, &dwObjNum); if (!bPagePosGot) return nullptr; |