CommandLine: use C++11 initializers
This commit is contained in:
parent
735a371249
commit
ec54a5c72c
@ -306,10 +306,6 @@ void
|
|||||||
ParseCommandLine(int argc, char **argv, struct options *options)
|
ParseCommandLine(int argc, char **argv, struct options *options)
|
||||||
{
|
{
|
||||||
bool use_config_file = true;
|
bool use_config_file = true;
|
||||||
options->kill = false;
|
|
||||||
options->daemon = true;
|
|
||||||
options->log_stderr = false;
|
|
||||||
options->verbose = false;
|
|
||||||
|
|
||||||
// First pass: handle command line options
|
// First pass: handle command line options
|
||||||
OptionParser parser(option_defs, argc, argv);
|
OptionParser parser(option_defs, argc, argv);
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
#define MPD_COMMAND_LINE_HXX
|
#define MPD_COMMAND_LINE_HXX
|
||||||
|
|
||||||
struct options {
|
struct options {
|
||||||
bool kill;
|
bool kill = false;
|
||||||
bool daemon;
|
bool daemon = true;
|
||||||
bool log_stderr;
|
bool log_stderr = false;
|
||||||
bool verbose;
|
bool verbose = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user