diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 21:56:17 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 21:56:17 +0000 |
commit | 576269a709da2e61481c7e1a5a3ac7771949d168 (patch) | |
tree | b94236270a79f7b241e5d615b5d66e70ca651cc5 /chrome/renderer/mock_keyboard_driver_win.cc | |
parent | 27ed3baee75f2dd28eb837dafdb41c5bddc759cd (diff) | |
download | chromium_src-576269a709da2e61481c7e1a5a3ac7771949d168.zip chromium_src-576269a709da2e61481c7e1a5a3ac7771949d168.tar.gz chromium_src-576269a709da2e61481c7e1a5a3ac7771949d168.tar.bz2 |
Use arraysize() instead of ARRAYSIZE_UNSAFE() where possible. Remove pointless comment about use of ARRAYSIZE_UNSAFE().
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2364003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_keyboard_driver_win.cc')
-rw-r--r-- | chrome/renderer/mock_keyboard_driver_win.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/renderer/mock_keyboard_driver_win.cc b/chrome/renderer/mock_keyboard_driver_win.cc index 151cb0b..ea88007 100644 --- a/chrome/renderer/mock_keyboard_driver_win.cc +++ b/chrome/renderer/mock_keyboard_driver_win.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -155,8 +155,7 @@ int MockKeyboardDriverWin::GetCharacters(int key_code, CHECK(output); wchar_t code[16]; int length = ToUnicodeEx(key_code, MapVirtualKey(key_code, 0), - &keyboard_states_[0], &code[0], - ARRAYSIZE_UNSAFE(code), 0, + &keyboard_states_[0], &code[0], arraysize(code), 0, active_keyboard_layout_); if (length > 0) output->assign(code); |