]> git.saurik.com Git - apt.git/blobdiff - ftparchive/cachedb.h
FildFd: Introduce a Flush() function and call it from Close()
[apt.git] / ftparchive / cachedb.h
index b40fd7df72865d1c367a293d922e1e33bd1c72c1..417c25a9fb22764eb8e44381f19517aaa01927ee 100644 (file)
@@ -99,8 +99,8 @@ class CacheDB
 
    // Stat info stored in the DB, Fixed types since it is written to disk.
    enum FlagList {FlControl = (1<<0),FlMD5=(1<<1),FlContents=(1<<2),
-                  FlSize=(1<<3), FlSHA1=(1<<4), FlSHA256=(1<<5), 
-                  FlSHA512=(1<<6), FlSource=(1<<7),
+                  FlSize=(1<<3), FlSHA1=(1<<4), FlSHA256=(1<<5),
+                  FlSHA512=(1<<6), FlSource=(1<<7)
    };
 
    // the on-disk format changed (FileSize increased to 64bit) in 
@@ -189,7 +189,7 @@ class CacheDB
    
    bool Clean();
    
-   CacheDB(std::string const &DB);
+   explicit CacheDB(std::string const &DB);
    ~CacheDB();
 };