mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
make all catch() arguments const
- I saw this on http://en.cppreference.com/w/cpp/language/try_catch and thought it would be a good idea - also unify used format to better be able to search for exception uses in our codebase
This commit is contained in:
@@ -92,7 +92,7 @@ struct ReadAlerts
|
||||
alerts.push_back(alert);
|
||||
}
|
||||
}
|
||||
catch (std::exception) { }
|
||||
catch (const std::exception&) { }
|
||||
}
|
||||
~ReadAlerts() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user