mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
constify missing catch cases
- ensure all missing catch cases are constant where possible
This commit is contained in:
@@ -109,7 +109,7 @@ bool AppInit(int argc, char* argv[])
|
||||
// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
|
||||
try {
|
||||
SelectParams(ChainNameFromCommandLine());
|
||||
} catch(std::exception &e) {
|
||||
} catch (const std::exception& e) {
|
||||
fprintf(stderr, "Error: %s\n", e.what());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user