CAutoFile: Explicit Get() and remove unused methods

Also add documentation to some methods.
This commit is contained in:
Wladimir J. van der Laan
2014-10-20 12:45:50 +02:00
parent fef24cab1a
commit a873823864
5 changed files with 25 additions and 18 deletions

View File

@@ -1939,7 +1939,7 @@ bool CAddrDB::Write(const CAddrMan& addr)
catch (std::exception &e) {
return error("%s : Serialize or I/O error - %s", __func__, e.what());
}
FileCommit(fileout);
FileCommit(fileout.Get());
fileout.fclose();
// replace existing peers.dat, if any, with new peers.dat.XXXX