diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-29 12:23:51 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-29 12:23:51 +0200 |
commit | 7adaab0430308a17f1db279f0ebbed8068dd4308 (patch) | |
tree | 47ee7ee7506b363c80939037833ae933ea300633 /ftparchive/cachedb.h | |
parent | e1a69e71efc0679815f722480169f16bf02622ab (diff) | |
parent | b29599105ed9a5bb38b55cb066ef81256d66be41 (diff) |
Merge remote-tracking branch 'mvo/debian/sid' into debian/sid
Diffstat (limited to 'ftparchive/cachedb.h')
-rw-r--r-- | ftparchive/cachedb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ftparchive/cachedb.h b/ftparchive/cachedb.h index 54a274944..edb8594bf 100644 --- a/ftparchive/cachedb.h +++ b/ftparchive/cachedb.h @@ -156,7 +156,7 @@ class CacheDB SHA512Bytes(0),Packages(0), Misses(0), DeLinkBytes(0) {}; } Stats; - bool ReadyDB(std::string const &DB); + bool ReadyDB(std::string const &DB = ""); inline bool DBFailed() {return Dbp != 0 && DBLoaded == false;}; inline bool Loaded() {return DBLoaded == true;}; @@ -180,8 +180,8 @@ class CacheDB bool Clean(); - CacheDB(std::string const &DB) : Dbp(0), Fd(NULL), DebFile(0) {TmpKey[0]='\0'; ReadyDB(DB);}; - ~CacheDB() {ReadyDB(std::string()); delete DebFile;}; + CacheDB(std::string const &DB); + ~CacheDB(); }; #endif |