]> git.tdb.fi Git - builder.git/blobdiff - source/cache.h
Use default member initializers and constructor delegation
[builder.git] / source / cache.h
index cf7253f717586982f98699d15485dd54d4272766..9193dacec848ae834ac264be6e0bb8ef8bc855a1 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef CACHE_H_
 #define CACHE_H_
 
-#include <list>
 #include <map>
+#include <vector>
 #include <msp/fs/path.h>
 #include <msp/time/timestamp.h>
 
@@ -20,7 +20,7 @@ unprintable characters or nuls.
 class Cache
 {
 public:
-       using Values = std::list<std::string>;
+       using Values = std::vector<std::string>;
 private:
        using Key = std::pair<std::string, std::string>;
 
@@ -28,7 +28,7 @@ private:
        Msp::FS::Path filename;
        std::map<Key, Values> data;
        Msp::Time::TimeStamp mtime;
-       mutable bool changed;
+       mutable bool changed = false;
 
 public:
        Cache(SourcePackage &p);