aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-18 12:56:07 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-18 12:56:07 +0000
commitd0238313278206e505473cef4d4bed88b75b96fd (patch)
treeba5b56f122beeb15794528445a56fd6ff7f65853 /src/common
parentMerge pull request #1869 (diff)
downloadmonero-d0238313278206e505473cef4d4bed88b75b96fd.tar.xz
use const references in catch blocks
Diffstat (limited to 'src/common')
-rw-r--r--src/common/command_line.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/command_line.h b/src/common/command_line.h
index 85117c49e..2110b8849 100644
--- a/src/common/command_line.h
+++ b/src/common/command_line.h
@@ -168,7 +168,7 @@ namespace command_line
{
return parser();
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
std::cerr << "Failed to parse arguments: " << e.what() << std::endl;
std::cerr << desc << std::endl;