diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-18 21:58:59 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-18 21:58:59 +0000 |
commit | 674c137e7d5f2b703c351951115e72681e664329 (patch) | |
tree | a861204ff988840adf587b04ecdfefa0a5c815e7 /chromeos | |
parent | 59fb88bf75d88b9e6cc7b62c79f233a5e5a0afe3 (diff) | |
download | chromium_src-674c137e7d5f2b703c351951115e72681e664329.zip chromium_src-674c137e7d5f2b703c351951115e72681e664329.tar.gz chromium_src-674c137e7d5f2b703c351951115e72681e664329.tar.bz2 |
xkb: XkbNamesPtr::vmods is an array (of atoms). It doesn't make sense to null check the array.
BUG=none
R=derat@chromium.org, yusukes@chromium.org
Review URL: https://codereview.chromium.org/197513004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos')
-rw-r--r-- | chromeos/ime/xkeyboard.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromeos/ime/xkeyboard.cc b/chromeos/ime/xkeyboard.cc index 7714e20..e0e69cf 100644 --- a/chromeos/ime/xkeyboard.cc +++ b/chromeos/ime/xkeyboard.cc @@ -153,7 +153,7 @@ unsigned int XKeyboardImpl::GetNumLockMask() { if (!xkb_desc) return kBadMask; - if (xkb_desc->dpy && xkb_desc->names && xkb_desc->names->vmods) { + if (xkb_desc->dpy && xkb_desc->names) { const std::string string_to_find(kNumLockVirtualModifierString); for (size_t i = 0; i < XkbNumVirtualMods; ++i) { const unsigned int virtual_mod_mask = 1U << i; |