1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

fixed some const exceptions

This commit is contained in:
Oliver Hahn 2024-03-20 23:14:48 +01:00
parent 0bcfe6753e
commit cf4c1b12c5

View file

@ -247,7 +247,7 @@ public:
{
r = get_value_basic<T>(section, key);
}
catch (except_item_not_found& e)
catch (except_item_not_found const& e)
{
music::elog << e.what() << std::endl;
throw;
@ -269,7 +269,7 @@ public:
T r;
try {
r = get_value_basic<T>(section, key);
} catch (except_item_not_found&) {
} catch (except_item_not_found const&) {
r = default_value;
music::dlog << "Item \'" << section << "/" << key << " not found in config. Default = \'" << default_value << "\'" << std::endl;
}