From dddfdad6ebb4e7172ff36f5a0db8a5cbf58d45f3 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 30 Nov 2017 15:42:00 +0000 Subject: Run clang-tidy modernize-use-auto on //third_party/pdfium See the bugs and cxx post for justification and details: https://groups.google.com/a/chromium.org/forum/#!topic/cxx/RkOHzIK6Tq8 This change was done using clang-tidy as described here: https://chromium.googlesource.com/chromium/src/+/lkcr/docs/clang_tidy.md Bug: chromium:776257 Change-Id: I1f6637cde8b3e41825993a736bed6763dd7beacb Reviewed-on: https://pdfium-review.googlesource.com/19971 Reviewed-by: Lei Zhang Commit-Queue: dsinclair --- core/fxcrt/string_view_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/fxcrt/string_view_template.h b/core/fxcrt/string_view_template.h index 12b422e090..fa33858a68 100644 --- a/core/fxcrt/string_view_template.h +++ b/core/fxcrt/string_view_template.h @@ -150,7 +150,7 @@ class StringViewTemplate { } pdfium::Optional Find(CharType ch) const { - const UnsignedType* found = reinterpret_cast(FXSYS_chr( + const auto* found = reinterpret_cast(FXSYS_chr( reinterpret_cast(m_Ptr.Get()), ch, m_Length)); return found ? pdfium::Optional(found - m_Ptr.Get()) -- cgit v1.2.3