diff options
author | tsepez <tsepez@chromium.org> | 2016-10-13 09:42:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-13 09:42:30 -0700 |
commit | d66f9d0b1fb0af57960f9c7163c475968505ee4a (patch) | |
tree | e3ddfa51c087bb7a6960f117f68a412b14b322d8 /core/fpdfapi/parser | |
parent | 6e5239c6e3891d78e7b9e8262c23cd129f0cdbb7 (diff) | |
download | pdfium-d66f9d0b1fb0af57960f9c7163c475968505ee4a.tar.xz |
split CPDF_StreamContentParser::AddImage() into 3 overloads.
Small step before making CPDF_Image stream ownership saner.
Review-Url: https://codereview.chromium.org/2416733002
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_stream.h b/core/fpdfapi/parser/cpdf_stream.h index ed266778b3..575a9ebe0b 100644 --- a/core/fpdfapi/parser/cpdf_stream.h +++ b/core/fpdfapi/parser/cpdf_stream.h @@ -58,6 +58,8 @@ class CPDF_Stream : public CPDF_Object { IFX_FileRead* m_pFile = nullptr; }; +using UniqueStream = std::unique_ptr<CPDF_Stream, ReleaseDeleter<CPDF_Stream>>; + inline CPDF_Stream* ToStream(CPDF_Object* obj) { return obj ? obj->AsStream() : nullptr; } |