From 679de53b6be33601c99dfbdad6f8fb8a0c246dd9 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 28 Nov 2017 19:27:39 +0000 Subject: Remove CollectionSize from string_view_template Bug: pdfium:774 Change-Id: Id993864c4ae009e686c62e7be13e2db5d8cb4170 Reviewed-on: https://pdfium-review.googlesource.com/19572 Commit-Queue: dsinclair Reviewed-by: Ryan Harrison Reviewed-by: Tom Sepez --- core/fxcrt/string_view_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcrt') 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& vec) { - m_Length = pdfium::CollectionSize(vec); + m_Length = vec.size(); m_Ptr = m_Length ? vec.data() : nullptr; } -- cgit v1.2.3