From bd49e8e76f2e6ea0ef586512a69e354de1be6017 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 6 Dec 2014 00:07:07 +0100 Subject: [PATCH] AllCommands: make the commands array "constexpr" --- src/command/AllCommands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx index be3a343a5..e8ec590c8 100644 --- a/src/command/AllCommands.cxx +++ b/src/command/AllCommands.cxx @@ -75,7 +75,7 @@ handle_not_commands(Client &client, unsigned argc, char *argv[]); * * This array must be sorted! */ -static const struct command commands[] = { +static constexpr struct command commands[] = { { "add", PERMISSION_ADD, 1, 1, handle_add }, { "addid", PERMISSION_ADD, 1, 2, handle_addid }, { "addtagid", PERMISSION_ADD, 3, 3, handle_addtagid },