summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtbuf_unittest.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-10 16:35:58 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-10 21:50:44 +0000
commit0e6438e40a95702edb8327286c8253aa269c9826 (patch)
tree5d3b07277b5fa4a1fb96a9d2a23108a3d02bdc9e /xfa/fde/cfde_txtedtbuf_unittest.cpp
parent6c0c48227aa024aa6e188ed7adf4d7c3d410cff9 (diff)
downloadpdfium-0e6438e40a95702edb8327286c8253aa269c9826.tar.xz
Remove custom allocator from CFDE_TxtEdtBuf.
This CL removes the custom allocator from CFDE_TxtEdtBuf and uses std::vector<std::unique_ptr>> instead. The Iterator code has been made an inner class of the buffer and rename to CFDE_TxtEdtBuf::Iterator instead of CFDE_TxtEdtBufIter. Change-Id: Ied8e844dea700e0ef37087f0d3fad4882d9eada1 Reviewed-on: https://pdfium-review.googlesource.com/2159 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtbuf_unittest.cpp')
-rw-r--r--xfa/fde/cfde_txtedtbuf_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fde/cfde_txtedtbuf_unittest.cpp b/xfa/fde/cfde_txtedtbuf_unittest.cpp
index 7228b2ad03..9c564093e5 100644
--- a/xfa/fde/cfde_txtedtbuf_unittest.cpp
+++ b/xfa/fde/cfde_txtedtbuf_unittest.cpp
@@ -14,7 +14,7 @@ class CFDE_TxtEdtBufTest : public testing::Test {
buf_ = pdfium::MakeUnique<CFDE_TxtEdtBuf>();
buf_->SetChunkSizeForTesting(5);
}
- size_t ChunkCount() const { return buf_->m_Chunks.GetSize(); }
+ size_t ChunkCount() const { return buf_->m_chunks.size(); }
std::unique_ptr<CFDE_TxtEdtBuf> buf_;
};