]> git.tdb.fi Git - builder.git/blobdiff - source/buildercli.h
Use default member initializers and constructor delegation
[builder.git] / source / buildercli.h
index 4fcdb0395052913b217f529f31b8b66c2e4d494e..3b15541b6e65eed515924db15994bf6fe6bf39ca 100644 (file)
@@ -18,20 +18,20 @@ private:
 
        Builder builder;
        Logger logger;
-       Analyzer *analyzer;
-       bool build;
-       unsigned clean;
-       bool dry_run;
-       bool help;
+       Analyzer *analyzer = 0;
+       bool build = false;
+       unsigned clean = 0;
+       bool dry_run = false;
+       bool help = false;
        std::string helpmsg;
-       bool show_progress;
-       std::string build_file;
-       unsigned jobs;
+       bool show_progress = false;
+       std::string build_file = "Build";
+       unsigned jobs = 1;
        std::vector<std::string> what_if;
-       bool conf_all;
-       bool conf_only;
-       bool build_all;
-       bool create_makefile;
+       bool conf_all = false;
+       bool conf_only = false;
+       bool build_all = false;
+       bool create_makefile = false;
 
 public:
        BuilderCLI(int, char **);