summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_bidi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fx_bidi.cpp')
-rw-r--r--core/fxcrt/fx_bidi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/fx_bidi.cpp b/core/fxcrt/fx_bidi.cpp
index 5ad6439e07..49333f6a76 100644
--- a/core/fxcrt/fx_bidi.cpp
+++ b/core/fxcrt/fx_bidi.cpp
@@ -52,8 +52,8 @@ CFX_BidiString::CFX_BidiString(const CFX_WideString& str)
: m_Str(str),
m_pBidiChar(new CFX_BidiChar),
m_eOverallDirection(CFX_BidiChar::LEFT) {
- for (int i = 0; i < m_Str.GetLength(); ++i) {
- if (m_pBidiChar->AppendChar(m_Str.GetAt(i)))
+ for (const auto& c : m_Str) {
+ if (m_pBidiChar->AppendChar(c))
m_Order.push_back(m_pBidiChar->GetSegmentInfo());
}
if (m_pBidiChar->EndChar())