summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_binarybuf.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-05-08 15:30:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-08 15:30:07 +0000
commit3645dbcf8f6b830ad5b371b9aaae6ee2be33eb98 (patch)
tree018b8ff4fa4e16dfefc41f72beae1323cb625ec8 /core/fxcrt/cfx_binarybuf.cpp
parentdec08c8d3fbc4e89748f2d655b32727cfab373ed (diff)
downloadpdfium-3645dbcf8f6b830ad5b371b9aaae6ee2be33eb98.tar.xz
[fm2js] Create fewer CFX_WideTextBuf classes
This CL modifies the formcalc transpiler to create less CFX_WideTextBuf classes as we convert to JavaScript. This can take some pathalogical formcal from 20sec to convert to .5sec. Bug: chromium:834575 Change-Id: I428883297bbc3a6a325a4ab0ad51834f2f02ab82 Reviewed-on: https://pdfium-review.googlesource.com/32154 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_binarybuf.cpp')
-rw-r--r--core/fxcrt/cfx_binarybuf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/cfx_binarybuf.cpp b/core/fxcrt/cfx_binarybuf.cpp
index 1243593a77..5ef907cb80 100644
--- a/core/fxcrt/cfx_binarybuf.cpp
+++ b/core/fxcrt/cfx_binarybuf.cpp
@@ -12,7 +12,7 @@
CFX_BinaryBuf::CFX_BinaryBuf()
: m_AllocStep(0), m_AllocSize(0), m_DataSize(0) {}
-CFX_BinaryBuf::~CFX_BinaryBuf() {}
+CFX_BinaryBuf::~CFX_BinaryBuf() = default;
void CFX_BinaryBuf::Delete(size_t start_index, size_t count) {
if (!m_pBuffer || count > m_DataSize || start_index > m_DataSize - count)