]> Git Repo - VerusCoin.git/blobdiff - src/bitcoind.cpp
make all catch() arguments const
[VerusCoin.git] / src / bitcoind.cpp
index be7757b0b6cedf2762bb739b38ff9b27981d4e0c..6e735fe3d97be01bc4950ae62814da6e09584d4e 100644 (file)
@@ -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()");
This page took 0.023194 seconds and 4 git commands to generate.