]> git.tdb.fi Git - builder.git/blobdiff - source/packagemanager.h
Use default member initializers and constructor delegation
[builder.git] / source / packagemanager.h
index 9da4af33e3a557851c7dc7f9d23c54e235412edf..22f1eacfbbe6eaf3eabce855ed69aa2350dc4ceb 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef PACKAGEMANAGER_H_
 #define PACKAGEMANAGER_H_
 
-#include <list>
 #include <map>
+#include <set>
 #include <string>
+#include <vector>
 #include <msp/fs/path.h>
 
 class Builder;
@@ -17,15 +18,15 @@ class PackageManager
 {
 private:
        Builder &builder;
-       std::list<Msp::FS::Path> pkg_path;
-       std::list<Msp::FS::Path> pkg_dirs;
-       std::list<Msp::FS::Path> binpkg_path;
-       std::list<Msp::FS::Path> binpkg_files;
-       bool no_externals;
+       std::vector<Msp::FS::Path> pkg_path;
+       std::vector<Msp::FS::Path> pkg_dirs;
+       std::vector<Msp::FS::Path> binpkg_path;
+       std::vector<Msp::FS::Path> binpkg_files;
+       bool no_externals = false;
        std::map<std::string, Package *> packages;
-       Package *main_pkg;
+       Package *main_pkg = 0;
        std::set<std::string> not_found;
-       bool env_set;
+       bool env_set = false;
 
 public:
        PackageManager(Builder &);