From cbdaf4827fedd4159de07a648899d88ca9a884af Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Sep 2014 09:10:17 +0200 Subject: CommandLine: make all OptionDefs "constexpr" --- src/CommandLine.cxx | 18 +++++++++--------- 1 file 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"); -- cgit v1.2.3