Skip to content

Commit c0375dd

Browse files
committed
Resolve '-Wzero-as-null-pointer-constant' warning
1 parent 2265d64 commit c0375dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OptionParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Values {
7676
class Option {
7777
public:
7878
Option(const OptionParser& p) :
79-
_parser(p), _action("store"), _type("string"), _nargs(1), _callback(0) {}
79+
_parser(p), _action("store"), _type("string"), _nargs(1), _callback(nullptr) {}
8080
virtual ~Option() {}
8181

8282
Option& action(const std::string& a);

0 commit comments

Comments
 (0)