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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user