From f57cad4f5dd0436d5b207d362afb34fc5f3f9acb Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Mon, 14 Aug 2017 23:35:52 +0300 Subject: Add CPDF_ObjectWalker. It is allow us to walk on all non-null sub-objects in an object in depth, include itself, Change-Id: Ia23051073984411668112422b47cf7a4460aa078 Reviewed-on: https://pdfium-review.googlesource.com/8910 Commit-Queue: Art Snake Reviewed-by: dsinclair --- core/fpdfapi/parser/cpdf_object.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/fpdfapi/parser/cpdf_object.cpp') diff --git a/core/fpdfapi/parser/cpdf_object.cpp b/core/fpdfapi/parser/cpdf_object.cpp index 82c3b09416..b35c6e5b6f 100644 --- a/core/fpdfapi/parser/cpdf_object.cpp +++ b/core/fpdfapi/parser/cpdf_object.cpp @@ -95,6 +95,10 @@ bool CPDF_Object::IsString() const { return false; } +bool CPDF_Object::IsNull() const { + return false; +} + CPDF_Array* CPDF_Object::AsArray() { return nullptr; } -- cgit v1.2.3