aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-06 00:07:07 +0100
committerMax Kellermann <max@duempel.org>2014-12-06 00:07:07 +0100
commitbd49e8e76f2e6ea0ef586512a69e354de1be6017 (patch)
tree9acb8ae656d501d79572ec588b99271b4c3dab50
parent533699abe750086fb4f17ac61219eb91826096ec (diff)
downloadmpd-bd49e8e76f2e6ea0ef586512a69e354de1be6017.tar.gz
mpd-bd49e8e76f2e6ea0ef586512a69e354de1be6017.tar.xz
mpd-bd49e8e76f2e6ea0ef586512a69e354de1be6017.zip
AllCommands: make the commands array "constexpr"
-rw-r--r--src/command/AllCommands.cxx2
1 files changed, 1 insertions, 1 deletions
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 },