mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1255655 - Const-ify GetCommandStr.kCommands. r=karlt.
--HG-- extra : rebase_source : 111210feb14070bb0ea7ffbf18b4826bd6697ca1
This commit is contained in:
parent
e098d1b141
commit
51a54c4e56
@ -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"
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user