Bug 1338946: Add const to kVirtualKeyName. r=jimm
authorDavid Major <dmajor@mozilla.com>
Wed, 15 Feb 2017 10:23:08 +1300
changeset 342907 2ee7a4f7d1c4b57da87d32686f30318fe76aa148
parent 342906 f290f11df56d73beddf046fecf76abef68540e33
child 342908 f450c9a5dac1da32d521265bbbff3fa721462bf4
push id31366
push usercbook@mozilla.com
push dateWed, 15 Feb 2017 11:25:19 +0000
treeherdermozilla-central@c0807d6938c1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1338946
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1338946: Add const to kVirtualKeyName. r=jimm MozReview-Commit-ID: EusACiEjfru
widget/windows/KeyboardLayout.cpp
--- a/widget/windows/KeyboardLayout.cpp
+++ b/widget/windows/KeyboardLayout.cpp
@@ -43,17 +43,17 @@
 // In WinUser.h, MAPVK_VK_TO_VSC_EX is defined only when WINVER >= 0x0600
 #ifndef MAPVK_VK_TO_VSC_EX
 #define MAPVK_VK_TO_VSC_EX (4)
 #endif
 
 namespace mozilla {
 namespace widget {
 
-static const char* kVirtualKeyName[] = {
+static const char* const kVirtualKeyName[] = {
   "NULL", "VK_LBUTTON", "VK_RBUTTON", "VK_CANCEL",
   "VK_MBUTTON", "VK_XBUTTON1", "VK_XBUTTON2", "0x07",
   "VK_BACK", "VK_TAB", "0x0A", "0x0B",
   "VK_CLEAR", "VK_RETURN", "0x0E", "0x0F",
 
   "VK_SHIFT", "VK_CONTROL", "VK_MENU", "VK_PAUSE",
   "VK_CAPITAL", "VK_KANA, VK_HANGUL", "0x16", "VK_JUNJA",
   "VK_FINAL", "VK_HANJA, VK_KANJI", "0x1A", "VK_ESCAPE",