summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_flatemodule.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-15 16:56:47 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 16:56:47 +0000
commit7c39bf7b87f871ccc50b66066c3bfb1883f66010 (patch)
tree57f56441c6e7b136ee0418fcb2dc53d866a780c0 /core/fxcodec/codec/ccodec_flatemodule.h
parent4f5ccaaecd7e524e98b79af6823a9ab6a8753d7f (diff)
downloadpdfium-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.h2
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);
};