diff options
author | thestig <thestig@chromium.org> | 2016-05-21 21:08:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-21 21:08:05 -0700 |
commit | b8bf55f73390a9460ec13dbffcf5d22819f9aa12 (patch) | |
tree | 15d20bce541b38f44e5defe642236d7f5ba4266c /core/fpdfapi/fpdf_page | |
parent | 4cafdefd77e29c9d38ad99c266a60ce296137a35 (diff) | |
download | pdfium-b8bf55f73390a9460ec13dbffcf5d22819f9aa12.tar.xz |
Get rid of CPDF_Object::GetArray().
BUG=pdfium:234
Review-Url: https://codereview.chromium.org/2001783003
Diffstat (limited to 'core/fpdfapi/fpdf_page')
-rw-r--r-- | core/fpdfapi/fpdf_page/fpdf_page_parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp index 4a7b6ad403..b30006bf35 100644 --- a/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp +++ b/core/fpdfapi/fpdf_page/fpdf_page_parser.cpp @@ -697,7 +697,7 @@ void CPDF_StreamContentParser::Handle_SetColorSpace_Stroke() { } void CPDF_StreamContentParser::Handle_SetDash() { - CPDF_Array* pArray = GetObject(1) ? GetObject(1)->GetArray() : nullptr; + CPDF_Array* pArray = ToArray(GetObject(1)); if (!pArray) return; @@ -1305,10 +1305,10 @@ void CPDF_StreamContentParser::Handle_ShowText() { } void CPDF_StreamContentParser::Handle_ShowText_Positioning() { - CPDF_Array* pArray = GetObject(0) ? GetObject(0)->GetArray() : NULL; - if (!pArray) { + CPDF_Array* pArray = ToArray(GetObject(0)); + if (!pArray) return; - } + size_t n = pArray->GetCount(); size_t nsegs = 0; for (size_t i = 0; i < n; i++) { |