diff options
| author | Pieter Wuille <[email protected]> | 2012-12-05 14:01:03 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-12-05 14:01:03 -0800 |
| commit | a485c1b69e282883414dfb387d0aac1cfa21533d (patch) | |
| tree | 8d6108b0ec18ea7164deb5c2e943f8bb5c5ef344 /src/init.cpp | |
| parent | Merge pull request #2055 from redshark1802/master (diff) | |
| parent | add 2 constructors in CDiskBlockPos to simplify class usage (diff) | |
| download | discoin-a485c1b69e282883414dfb387d0aac1cfa21533d.tar.xz discoin-a485c1b69e282883414dfb387d0aac1cfa21533d.zip | |
Merge pull request #2063 from Diapolo/CDiskBlockPos
add 2 constructors in CDiskBlockPos to simplify class usage
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index e0fbb3133..a224b336c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -346,9 +346,7 @@ void ThreadImport(void *data) { CImportingNow imp; int nFile = 0; while (!fShutdown) { - CDiskBlockPos pos; - pos.nFile = nFile; - pos.nPos = 0; + CDiskBlockPos pos(nFile, 0); FILE *file = OpenBlockFile(pos, true); if (!file) break; |