summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-16 20:51:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-16 20:51:08 +0000
commitaa987a9a895d42749c0f5e4092618fe7ded6667e (patch)
treecb90d6994b6badbf0ea279d08830df96175bb604 /core/fxcodec/codec
parent0a4445ad1c3d76f8eb1b6b3e443a9a731430c237 (diff)
downloadpdfium-aa987a9a895d42749c0f5e4092618fe7ded6667e.tar.xz
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 <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec')
-rw-r--r--core/fxcodec/codec/fx_codec_fax.cpp2
1 files changed, 1 insertions, 1 deletions
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() {