summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_object.cpp
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-08-14 23:35:52 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-08-14 22:30:41 +0000
commitf57cad4f5dd0436d5b207d362afb34fc5f3f9acb (patch)
tree6beef6ce505b2baf0d976e545a5ac8a625e5ff95 /core/fpdfapi/parser/cpdf_object.cpp
parent93c886b7ce59f6e65fe885330558c52f51cfcab9 (diff)
downloadpdfium-f57cad4f5dd0436d5b207d362afb34fc5f3f9acb.tar.xz
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 <art-snake@yandex-team.ru> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_object.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_object.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}