summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi/cpdf_object.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-03-15 09:33:58 -0700
committerTom Sepez <tsepez@chromium.org>2016-03-15 09:33:58 -0700
commit92bbb6fce88d1cb4d931da66adf690850ce62fd1 (patch)
tree5fa459547fd43200d341ef1849fad268e34743b5 /core/include/fpdfapi/cpdf_object.h
parent2df269c52741c12d63300cee806e96ae5d0b038f (diff)
downloadpdfium-92bbb6fce88d1cb4d931da66adf690850ce62fd1.tar.xz
Split CPDF_Stream/CPDF_StreamAcc into separate files
R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/1783933003 .
Diffstat (limited to 'core/include/fpdfapi/cpdf_object.h')
-rw-r--r--core/include/fpdfapi/cpdf_object.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/include/fpdfapi/cpdf_object.h b/core/include/fpdfapi/cpdf_object.h
index 2add5524a8..97499d140c 100644
--- a/core/include/fpdfapi/cpdf_object.h
+++ b/core/include/fpdfapi/cpdf_object.h
@@ -150,4 +150,12 @@ inline const CPDF_Reference* ToReference(const CPDF_Object* obj) {
return obj ? obj->AsReference() : nullptr;
}
+inline CPDF_Stream* ToStream(CPDF_Object* obj) {
+ return obj ? obj->AsStream() : nullptr;
+}
+
+inline const CPDF_Stream* ToStream(const CPDF_Object* obj) {
+ return obj ? obj->AsStream() : nullptr;
+}
+
#endif // CORE_INCLUDE_FPDFAPI_CPDF_OBJECT_H_