diff options
| author | Philip Kaufmann <[email protected]> | 2014-09-25 08:53:43 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-10-02 10:46:31 +0200 |
| commit | c9fb27da0a72135417956dca8dafa959ebb67c10 (patch) | |
| tree | 7676f91bda9f87762ff5cdd2cbee18eba50dd854 /src/core_write.cpp | |
| parent | Merge pull request #5017 (diff) | |
| download | discoin-c9fb27da0a72135417956dca8dafa959ebb67c10.tar.xz discoin-c9fb27da0a72135417956dca8dafa959ebb67c10.zip | |
CBufferedFile: convert into a non-refcounted RAII wrapper
- it now takes over the passed file descriptor and closes it in the
destructor
- this fixes a leak in LoadExternalBlockFile(), where an exception could
cause the file to not getting closed
- disallow copies (like recently added for CAutoFile)
- make nType and nVersion private
Diffstat (limited to 'src/core_write.cpp')
0 files changed, 0 insertions, 0 deletions