util/OptionParser: use C++11 initializers
This commit is contained in:
parent
a0c4102b5a
commit
465b154fc0
@ -31,16 +31,16 @@ class OptionParser
|
|||||||
{
|
{
|
||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
char *option;
|
char *option = nullptr;
|
||||||
char *option_raw;
|
char *option_raw = nullptr;
|
||||||
bool is_long;
|
bool is_long = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Constructs #OptionParser.
|
* Constructs #OptionParser.
|
||||||
*/
|
*/
|
||||||
OptionParser(int _argc, char **_argv)
|
OptionParser(int _argc, char **_argv)
|
||||||
: argc(_argc - 1), argv(_argv + 1),
|
:argc(_argc - 1), argv(_argv + 1) {}
|
||||||
option(nullptr), option_raw(nullptr), is_long(false) { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if there are command line entries to process.
|
* Checks if there are command line entries to process.
|
||||||
|
Loading…
Reference in New Issue
Block a user