diff options
author | Lei Zhang <thestig@chromium.org> | 2018-01-11 14:15:03 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 14:15:03 +0000 |
commit | 89fa5dfee5107736597682f174fdc95d0baec830 (patch) | |
tree | 35af8892240779553c5ebe339cd23d868fd86a51 /fpdfsdk/pwl/cpwl_font_map.cpp | |
parent | 382129e2bdb1337a5a82cbd96478aab02f9aff7d (diff) | |
download | pdfium-89fa5dfee5107736597682f174fdc95d0baec830.tar.xz |
Use range-based for-loops in a few more places.
Change-Id: Id403abaf3d142dc30a661bc64ff48dbd5b10948e
Reviewed-on: https://pdfium-review.googlesource.com/22736
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_font_map.cpp')
-rw-r--r-- | fpdfsdk/pwl/cpwl_font_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/pwl/cpwl_font_map.cpp b/fpdfsdk/pwl/cpwl_font_map.cpp index 4a2ac4bcb8..5e5556ebb0 100644 --- a/fpdfsdk/pwl/cpwl_font_map.cpp +++ b/fpdfsdk/pwl/cpwl_font_map.cpp @@ -149,8 +149,8 @@ void CPWL_FontMap::Initialize() { } bool CPWL_FontMap::IsStandardFont(const ByteString& sFontName) { - for (size_t i = 0; i < FX_ArraySize(g_sDEStandardFontName); ++i) { - if (sFontName == g_sDEStandardFontName[i]) + for (const char* name : g_sDEStandardFontName) { + if (sFontName == name) return true; } |