summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_font_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pwl/cpwl_font_map.cpp')
-rw-r--r--fpdfsdk/pwl/cpwl_font_map.cpp4
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;
}