summaryrefslogtreecommitdiff
path: root/core/fpdftext
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/fpdftext
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/fpdftext')
-rw-r--r--core/fpdftext/cpdf_textpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdftext/cpdf_textpage.cpp b/core/fpdftext/cpdf_textpage.cpp
index ed7f36fb6c..eccac12b22 100644
--- a/core/fpdftext/cpdf_textpage.cpp
+++ b/core/fpdftext/cpdf_textpage.cpp
@@ -217,7 +217,7 @@ PAGECHAR_INFO::~PAGECHAR_INFO() {}
CPDF_TextPage::CPDF_TextPage(const CPDF_Page* pPage, FPDFText_Direction flags)
: m_pPage(pPage), m_parserflag(flags) {
- m_TextBuf.EstimateSize(0, 10240);
+ m_TextBuf.SetAllocStep(10240);
const FX_RECT rect(0, 0, static_cast<int>(pPage->GetPageWidth()),
static_cast<int>(pPage->GetPageHeight()));
m_DisplayMatrix = pPage->GetDisplayMatrix(rect, 0);