aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-18 20:30:19 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-18 20:30:19 +0200
commitf33a696ec7de8dbadcc65cbed4bcb1ef7b720609 (patch)
treee81c162369e84bf36f95db167238fa2d8dc171d3 /src/common
parentMerge pull request #1882 (diff)
parentuse const references in catch blocks (diff)
downloadmonero-f33a696ec7de8dbadcc65cbed4bcb1ef7b720609.tar.xz
Merge pull request #1883
d0238313 use const references in catch blocks (moneromooo-monero)
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;