remove GetBoolArg() fDefault parameter defaulting to false
- explicitly set the default of all GetBoolArg() calls - rework getarg_test.cpp and util_tests.cpp to cover this change - some indentation fixes - move macdockiconhandler.h include in bitcoin.cpp to the "our headers" section
This commit is contained in:
@@ -518,7 +518,7 @@ static void InterpretNegativeSetting(string name, map<string, string>& mapSettin
|
||||
positive.append(name.begin()+3, name.end());
|
||||
if (mapSettingsRet.count(positive) == 0)
|
||||
{
|
||||
bool value = !GetBoolArg(name);
|
||||
bool value = !GetBoolArg(name, false);
|
||||
mapSettingsRet[positive] = (value ? "1" : "0");
|
||||
}
|
||||
}
|
||||
@@ -1171,7 +1171,6 @@ bool TruncateFile(FILE *file, unsigned int length) {
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
// this function tries to raise the file descriptor limit to the requested number.
|
||||
// It returns the actual file descriptor limit (which may be more or less than nMinFD)
|
||||
int RaiseFileDescriptorLimit(int nMinFD) {
|
||||
@@ -1257,8 +1256,8 @@ void ShrinkDebugFile()
|
||||
fclose(file);
|
||||
}
|
||||
}
|
||||
else if(file != NULL)
|
||||
fclose(file);
|
||||
else if (file != NULL)
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user