Bug 1255655 - Const-ify GetCommandStr.kCommands. r=karlt.

--HG--
extra : rebase_source : 111210feb14070bb0ea7ffbf18b4826bd6697ca1
This commit is contained in:
Nicholas Nethercote 2016-03-11 13:57:18 +11:00
parent e098d1b141
commit 51a54c4e56

View File

@ -522,7 +522,7 @@ WidgetKeyboardEvent::GetCodeNameIndex(const nsAString& aCodeValue)
WidgetKeyboardEvent::GetCommandStr(Command aCommand)
{
#define NS_DEFINE_COMMAND(aName, aCommandStr) , #aCommandStr
static const char* kCommands[] = {
static const char* const kCommands[] = {
"" // CommandDoNothing
#include "mozilla/CommandList.h"
};