diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-28 19:27:39 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-28 19:27:39 +0000 |
commit | 679de53b6be33601c99dfbdad6f8fb8a0c246dd9 (patch) | |
tree | f552f1b7bd5b74cfe0fbf2ec83552ee7d78cee51 /core | |
parent | 9cc00f40a38c9b2beed17ecfe0e5f71c127d2ea4 (diff) | |
download | pdfium-679de53b6be33601c99dfbdad6f8fb8a0c246dd9.tar.xz |
Remove CollectionSize from string_view_template
Bug: pdfium:774
Change-Id: Id993864c4ae009e686c62e7be13e2db5d8cb4170
Reviewed-on: https://pdfium-review.googlesource.com/19572
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fxcrt/string_view_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/string_view_template.h b/core/fxcrt/string_view_template.h index ac376ff8a0..12b422e090 100644 --- a/core/fxcrt/string_view_template.h +++ b/core/fxcrt/string_view_template.h @@ -64,7 +64,7 @@ class StringViewTemplate { // Any changes to |vec| invalidate the string. explicit StringViewTemplate(const std::vector<UnsignedType>& vec) { - m_Length = pdfium::CollectionSize<size_t>(vec); + m_Length = vec.size(); m_Ptr = m_Length ? vec.data() : nullptr; } |