Revert "Revert "Add type cast definitions for CPDF_Reference.""
authorDan Sinclair <dsinclair@chromium.org>
Mon, 26 Oct 2015 19:58:42 +0000 (15:58 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Mon, 26 Oct 2015 19:58:42 +0000 (15:58 -0400)
commit6ee3484bcb413f4cce303e237fe15e2bdaf51ade
tree89207598714eda2da04af966a013c905a1c63dcf
parent7e155865c90cc1115cc7193b7646a341d8f9093e
Revert "Revert "Add type cast definitions for CPDF_Reference.""

This reverts commit 7e155865c90cc1115cc7193b7646a341d8f9093e.

Add type cast definitions for CPDF_Reference.

This Cl adds ToReference, CPDF_Object::AsReference and CPDF_Object::IsReference
and updates the src to use them as needed.

BUG=pdfium:201
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1418923005 .
12 files changed:
core/include/fpdfapi/fpdf_objects.h
core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
core/src/fpdfdoc/doc_form.cpp
core/src/fpdfdoc/doc_tagged.cpp
fpdfsdk/src/fpdf_flatten.cpp
fpdfsdk/src/fpdf_transformpage.cpp
fpdfsdk/src/fpdfppo.cpp