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/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 944345abb2..52c7d73e89 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1535,9 +1535,7 @@ void static FlushBlockFile() { LOCK(cs_LastBlockFile); - CDiskBlockPos posOld; - posOld.nFile = nLastBlockFile; - posOld.nPos = 0; + CDiskBlockPos posOld(nLastBlockFile, 0); FILE *fileOld = OpenBlockFile(posOld); FileCommit(fileOld); -- cgit v1.2.3