Commit bd49e8e7 authored by Max Kellermann's avatar Max Kellermann

AllCommands: make the commands array "constexpr"

parent 533699ab
......@@ -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 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment