aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2012-12-03 10:14:54 +0100
committerPhilip Kaufmann <[email protected]>2012-12-03 10:19:17 +0100
commita8a4b9673e1f4acabe835a692840c54c50862449 (patch)
tree7df2cdf42e78d72e78b9ac27a7f584fdd84ecdfd /src/main.cpp
parentMerge pull request #2033 from sipa/kickconflicts (diff)
downloaddiscoin-a8a4b9673e1f4acabe835a692840c54c50862449.tar.xz
discoin-a8a4b9673e1f4acabe835a692840c54c50862449.zip
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
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 944345abb..52c7d73e8 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);