aboutsummaryrefslogtreecommitdiffstats
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-09-22 09:10:17 +0200
committerMax Kellermann <max@duempel.org>2014-09-22 09:10:17 +0200
commitcbdaf4827fedd4159de07a648899d88ca9a884af (patch)
tree76bb16b88a42f95e524f126fe0a24d9083394c94 /src/CommandLine.cxx
parentf2c28d287a92d3cb1cbdfe92f277dbf6c4e76e38 (diff)
downloadmpd-cbdaf4827fedd4159de07a648899d88ca9a884af.tar.gz
mpd-cbdaf4827fedd4159de07a648899d88ca9a884af.tar.xz
mpd-cbdaf4827fedd4159de07a648899d88ca9a884af.zip
CommandLine: make all OptionDefs "constexpr"
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r--src/CommandLine.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index cc278c0fd..c6e9c69c5 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -74,23 +74,23 @@
#define USER_CONFIG_FILE_LOCATION_XDG "mpd/mpd.conf"
#endif
-static const OptionDef opt_kill(
+static constexpr OptionDef opt_kill(
"kill", "kill the currently running mpd session");
-static const OptionDef opt_no_config(
+static constexpr OptionDef opt_no_config(
"no-config", "don't read from config");
-static const OptionDef opt_no_daemon(
+static constexpr OptionDef opt_no_daemon(
"no-daemon", "don't detach from console");
-static const OptionDef opt_stdout(
+static constexpr OptionDef opt_stdout(
"stdout", nullptr); // hidden, compatibility with old versions
-static const OptionDef opt_stderr(
+static constexpr OptionDef opt_stderr(
"stderr", "print messages to stderr");
-static const OptionDef opt_verbose(
+static constexpr OptionDef opt_verbose(
"verbose", 'v', "verbose logging");
-static const OptionDef opt_version(
+static constexpr OptionDef opt_version(
"version", 'V', "print version number");
-static const OptionDef opt_help(
+static constexpr OptionDef opt_help(
"help", 'h', "show help options");
-static const OptionDef opt_help_alt(
+static constexpr OptionDef opt_help_alt(
nullptr, '?', nullptr); // hidden, standard alias for --help
static constexpr Domain cmdline_domain("cmdline");