From aa987a9a895d42749c0f5e4092618fe7ded6667e Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 16 Aug 2018 20:51:08 +0000 Subject: Remove default arg from CFX_BinaryBuf::EstimateSize(). Disentangle setting an allocation step from estimating size, these separate concepts can be handled separately. Change-Id: I27bf3e193018a4377ccf266207b889fdb672826c Reviewed-on: https://pdfium-review.googlesource.com/40210 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxcodec/codec/fx_codec_fax.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcodec/codec') diff --git a/core/fxcodec/codec/fx_codec_fax.cpp b/core/fxcodec/codec/fx_codec_fax.cpp index 2c85e2dc8b..aabc110010 100644 --- a/core/fxcodec/codec/fx_codec_fax.cpp +++ b/core/fxcodec/codec/fx_codec_fax.cpp @@ -759,7 +759,7 @@ CCodec_FaxEncoder::CCodec_FaxEncoder(const uint8_t* src_buf, m_RefLine.resize(m_Pitch); memset(m_RefLine.data(), 0xff, m_Pitch); m_pLineBuf = FX_Alloc2D(uint8_t, m_Pitch, 8); - m_DestBuf.EstimateSize(0, 10240); + m_DestBuf.SetAllocStep(10240); } CCodec_FaxEncoder::~CCodec_FaxEncoder() { -- cgit v1.2.3