aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-12-07 13:29:06 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-12-17 09:39:24 +0100
commit27df4123c433e5ad4e5592f0a8fbc40ca933865b (patch)
tree90ca518364768b73da454b6f782130e13fd48ef3 /src/bitcoind.cpp
parent851dfc7f88d1b7c42534fffcfbdb2f1bcc473045 (diff)
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/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index be7757b0b6..6e735fe3d9 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -97,7 +97,7 @@ bool AppInit(int argc, char* argv[])
try
{
ReadConfigFile(mapArgs, mapMultiArgs);
- } catch(std::exception &e) {
+ } catch (const std::exception& e) {
fprintf(stderr,"Error reading configuration file: %s\n", e.what());
return false;
}
@@ -147,7 +147,7 @@ bool AppInit(int argc, char* argv[])
detectShutdownThread = new boost::thread(boost::bind(&DetectShutdownThread, &threadGroup));
fRet = AppInit2(threadGroup);
}
- catch (std::exception& e) {
+ catch (const std::exception& e) {
PrintExceptionContinue(&e, "AppInit()");
} catch (...) {
PrintExceptionContinue(NULL, "AppInit()");