From a8a4b9673e1f4acabe835a692840c54c50862449 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Mon, 3 Dec 2012 10:14:54 +0100 Subject: add 2 constructors in CDiskBlockPos to simplify class usage - add a default-constructor, which simply calls SetNull() and a constructor to directly pass nFile and nPos - change code to use that new constructors --- src/init.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/init.cpp') 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; -- cgit v1.2.3