]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/getopt.h
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / getopt.h
index ed6cf86195d2419cf7e3b579e470b64e242bc0bd..ade620bf94d5c46bc2b6c36197a807a4b4edb986 100644 (file)
@@ -121,10 +121,10 @@ private:
                std::string lng;
                ArgType arg_type = NO_ARG;
                unsigned seen_count = 0;
-               unsigned *ext_seen_count = 0;
+               unsigned *ext_seen_count = nullptr;
                std::string help;
                std::string metavar = "ARG";
-               Store *store = 0;
+               Store *store = nullptr;
 
        public:
                OptionImpl(char, const std::string &, const Store &, ArgType);
@@ -149,7 +149,7 @@ private:
                std::string name;
                ArgType type = REQUIRED_ARG;
                std::string help;
-               Store *store = 0;
+               Store *store = nullptr;
 
        public:
                ArgumentImpl(const std::string &, const Store &, ArgType);