]> git.tdb.fi Git - builder.git/blobdiff - source/analyzer.h
Use default member initializers and constructor delegation
[builder.git] / source / analyzer.h
index 4c9e14641a2fc02af7be622836997804d1c0f3fe..5827480cdd913765a7353e73a97068d20b6f4f27 100644 (file)
@@ -27,10 +27,10 @@ private:
        using TableRow = std::vector<std::string>;
 
        Builder &builder;
-       Mode mode;
+       Mode mode = DEPS;
        std::vector<TableRow> table;
-       unsigned max_depth;
-       bool full_paths;
+       unsigned max_depth = 0;
+       bool full_paths = false;
        std::map<const Target *, std::set<Target *> > rdepends;
 
 public: