summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-16 10:12:48 +0100
committerMax Kellermann <max@musicpd.org>2018-01-16 10:12:48 +0100
commit465b154fc0fb26aa60f103f62829288bb6dfa18e (patch)
tree0e6a41d3b90836626c1ba9c08ad1808599a2325c /src
parenta0c4102b5a23eefc5472c8eabad96990d2d1790f (diff)
util/OptionParser: use C++11 initializers
Diffstat (limited to 'src')
-rw-r--r--src/util/OptionParser.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/OptionParser.hxx b/src/util/OptionParser.hxx
index 1fee60f35..aa0f9fa7b 100644
--- a/src/util/OptionParser.hxx
+++ b/src/util/OptionParser.hxx
@@ -31,16 +31,16 @@ class OptionParser
{
int argc;
char **argv;
- char *option;
- char *option_raw;
- bool is_long;
+ char *option = nullptr;
+ char *option_raw = nullptr;
+ bool is_long = false;
+
public:
/**
* Constructs #OptionParser.
*/
OptionParser(int _argc, char **_argv)
- : argc(_argc - 1), argv(_argv + 1),
- option(nullptr), option_raw(nullptr), is_long(false) { }
+ :argc(_argc - 1), argv(_argv + 1) {}
/**
* Checks if there are command line entries to process.