From d4d7691fabcc7643540c0ab141d7f61445872e87 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 15 Apr 2019 12:30:21 +0100 Subject: [PATCH] Catch exception by reference to avoid compiler warning. --- srsenb/src/parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/parser.cc b/srsenb/src/parser.cc index 5da623607..9075f88f5 100644 --- a/srsenb/src/parser.cc +++ b/srsenb/src/parser.cc @@ -122,7 +122,7 @@ int parser::section::parse(Setting &root) if (enabled_value) { *enabled_value = true; } - } catch(const SettingNotFoundException ex) { + } catch (const SettingNotFoundException& ex) { if (enabled_value) { *enabled_value = false; return 0;