diff options
Diffstat (limited to 'core/fxge/apple')
-rw-r--r-- | core/fxge/apple/fx_mac_imp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxge/apple/fx_mac_imp.cpp b/core/fxge/apple/fx_mac_imp.cpp index edd36bf2bc..3f75984f47 100644 --- a/core/fxge/apple/fx_mac_imp.cpp +++ b/core/fxge/apple/fx_mac_imp.cpp @@ -65,9 +65,9 @@ void* CFX_MacFontInfo::MapFont(int weight, int pitch_family, const char* cstr_face) { ByteString face = cstr_face; - for (size_t i = 0; i < FX_ArraySize(g_Base14Substs); ++i) { - if (face == ByteStringView(g_Base14Substs[i].m_pName)) { - face = g_Base14Substs[i].m_pSubstName; + for (const auto& sub : g_Base14Substs) { + if (face == ByteStringView(sub.m_pName)) { + face = sub.m_pSubstName; return GetFont(face.c_str()); } } |