From 51a54c4e563ba138ff2f8751f0c19917e111d303 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 11 Mar 2016 13:57:18 +1100 Subject: [PATCH] Bug 1255655 - Const-ify GetCommandStr.kCommands. r=karlt. --HG-- extra : rebase_source : 111210feb14070bb0ea7ffbf18b4826bd6697ca1 --- widget/WidgetEventImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/WidgetEventImpl.cpp b/widget/WidgetEventImpl.cpp index d5753f14268f..25f0b4f88172 100644 --- a/widget/WidgetEventImpl.cpp +++ b/widget/WidgetEventImpl.cpp @@ -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" };