diff options
| author | Philip Kaufmann <[email protected]> | 2014-12-07 13:29:06 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-12-17 09:39:24 +0100 |
| commit | 27df4123c433e5ad4e5592f0a8fbc40ca933865b (patch) | |
| tree | 90ca518364768b73da454b6f782130e13fd48ef3 /src/test/alert_tests.cpp | |
| parent | Merge pull request #5488 (diff) | |
| download | discoin-27df4123c433e5ad4e5592f0a8fbc40ca933865b.tar.xz discoin-27df4123c433e5ad4e5592f0a8fbc40ca933865b.zip | |
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
Diffstat (limited to 'src/test/alert_tests.cpp')
| -rw-r--r-- | src/test/alert_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp index 4869ba52a..614960fa6 100644 --- a/src/test/alert_tests.cpp +++ b/src/test/alert_tests.cpp @@ -92,7 +92,7 @@ struct ReadAlerts alerts.push_back(alert); } } - catch (std::exception) { } + catch (const std::exception&) { } } ~ReadAlerts() { } |