diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-03-15 09:33:58 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-03-15 09:33:58 -0700 |
commit | 92bbb6fce88d1cb4d931da66adf690850ce62fd1 (patch) | |
tree | 5fa459547fd43200d341ef1849fad268e34743b5 /core/include/fpdfapi/cpdf_object.h | |
parent | 2df269c52741c12d63300cee806e96ae5d0b038f (diff) | |
download | pdfium-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.h | 8 |
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_ |