AllCommands: make the commands array "constexpr"

This commit is contained in:
Max Kellermann 2014-12-06 00:07:07 +01:00
parent 533699abe7
commit bd49e8e76f

View File

@ -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 },