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:
Henri Sivonen 2019-10-03 10:53:39 +00:00
parent f613089077
commit 7a5fa0c5d6

View File

@ -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) {