Catch exception by reference to avoid compiler warning.

This commit is contained in:
Pedro Alvarez 2019-04-15 12:30:21 +01:00 committed by Andre Puschmann
parent 5e5e797cb9
commit d4d7691fab
1 changed files with 1 additions and 1 deletions

View File

@ -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;