From d0238313278206e505473cef4d4bed88b75b96fd Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 18 Mar 2017 12:56:07 +0000 Subject: use const references in catch blocks --- src/common/command_line.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/command_line.h') 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; -- cgit v1.2.3