mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1585553 - s/wchar_t/char16_t/ for a variable always initialized from char16_t. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D48050 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f613089077
commit
7a5fa0c5d6
@ -573,7 +573,7 @@ bool TextEventDispatcher::DispatchKeyboardEventInternal(
|
||||
!aIndexOfKeypress || aIndexOfKeypress < keyEvent.mKeyValue.Length(),
|
||||
"aIndexOfKeypress must be 0 - mKeyValue.Length() - 1");
|
||||
}
|
||||
wchar_t ch =
|
||||
char16_t ch =
|
||||
keyEvent.mKeyValue.IsEmpty() ? 0 : keyEvent.mKeyValue[aIndexOfKeypress];
|
||||
keyEvent.SetCharCode(static_cast<uint32_t>(ch));
|
||||
if (aMessage == eKeyPress) {
|
||||
|
Loading…
Reference in New Issue
Block a user