diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-15 16:56:47 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-15 16:56:47 +0000 |
commit | 7c39bf7b87f871ccc50b66066c3bfb1883f66010 (patch) | |
tree | 57f56441c6e7b136ee0418fcb2dc53d866a780c0 /core/fxcodec/codec/ccodec_flatemodule.h | |
parent | 4f5ccaaecd7e524e98b79af6823a9ab6a8753d7f (diff) | |
download | pdfium-7c39bf7b87f871ccc50b66066c3bfb1883f66010.tar.xz |
Make FlateEncode()'s buffer out parameter a unique_ptr.
Change-Id: I31a5abb3c8dd31826098493f51effbd5afe109d1
Reviewed-on: https://pdfium-review.googlesource.com/c/41856
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_flatemodule.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_flatemodule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_flatemodule.h b/core/fxcodec/codec/ccodec_flatemodule.h index 591d13d42e..d58c1847ce 100644 --- a/core/fxcodec/codec/ccodec_flatemodule.h +++ b/core/fxcodec/codec/ccodec_flatemodule.h @@ -41,7 +41,7 @@ class CCodec_FlateModule { bool Encode(const uint8_t* src_buf, uint32_t src_size, - uint8_t** dest_buf, + std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, uint32_t* dest_size); }; |