diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-30 15:42:00 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-30 15:42:00 +0000 |
commit | dddfdad6ebb4e7172ff36f5a0db8a5cbf58d45f3 (patch) | |
tree | 2098bca3a3218c2480620a02f0e5ef479dad4653 /core/fxcrt/string_view_template.h | |
parent | 56569acb6daa4d487a3d3eccce5784028873651c (diff) | |
download | pdfium-dddfdad6ebb4e7172ff36f5a0db8a5cbf58d45f3.tar.xz |
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 <thestig@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/string_view_template.h')
-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 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<size_t> Find(CharType ch) const { - const UnsignedType* found = reinterpret_cast<const UnsignedType*>(FXSYS_chr( + const auto* found = reinterpret_cast<const UnsignedType*>(FXSYS_chr( reinterpret_cast<const CharType*>(m_Ptr.Get()), ch, m_Length)); return found ? pdfium::Optional<size_t>(found - m_Ptr.Get()) |