diff options
author | Lei Zhang <thestig@chromium.org> | 2017-07-28 12:28:08 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-28 19:52:52 +0000 |
commit | f0e9c849a3fd4efec3d7ee57fc4889814c45b0cd (patch) | |
tree | df590aef0b7e488400807edba19007ada5d43ee0 /core/fxcrt/fx_unicode.cpp | |
parent | 05590922d4d33f0306ca5065946526580150dd8a (diff) | |
download | pdfium-f0e9c849a3fd4efec3d7ee57fc4889814c45b0cd.tar.xz |
Use FX_GetUnicodeProperties() in more places.chromium/3173chromium/3172chromium/3171
Instead of accessing the raw kTextLayoutCodeProperties data.
Change-Id: Ie39cf5c098e1564ae2f18d76b234af42f24db4ca
Reviewed-on: https://pdfium-review.googlesource.com/9451
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_unicode.cpp')
-rw-r--r-- | core/fxcrt/fx_unicode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fx_unicode.cpp b/core/fxcrt/fx_unicode.cpp index 595bb65a63..f23200491a 100644 --- a/core/fxcrt/fx_unicode.cpp +++ b/core/fxcrt/fx_unicode.cpp @@ -24,7 +24,7 @@ wchar_t GetMirrorChar(wchar_t wch, uint32_t dwProps) { uint32_t FX_GetUnicodeProperties(wchar_t wch) { size_t idx = static_cast<size_t>(wch); if (idx < kTextLayoutCodePropertiesSize) - return kTextLayoutCodeProperties[(uint16_t)wch]; + return kTextLayoutCodeProperties[idx]; return 0; } |