Catch exception by reference to avoid compiler warning.

master
Pedro Alvarez 6 years ago committed by Andre Puschmann
parent 5e5e797cb9
commit d4d7691fab

@ -122,7 +122,7 @@ int parser::section::parse(Setting &root)
if (enabled_value) { if (enabled_value) {
*enabled_value = true; *enabled_value = true;
} }
} catch(const SettingNotFoundException ex) { } catch (const SettingNotFoundException& ex) {
if (enabled_value) { if (enabled_value) {
*enabled_value = false; *enabled_value = false;
return 0; return 0;

Loading…
Cancel
Save