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:
parent
0bcfe6753e
commit
cf4c1b12c5
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ public:
|
||||||
{
|
{
|
||||||
r = get_value_basic<T>(section, key);
|
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;
|
music::elog << e.what() << std::endl;
|
||||||
throw;
|
throw;
|
||||||
|
@ -269,7 +269,7 @@ public:
|
||||||
T r;
|
T r;
|
||||||
try {
|
try {
|
||||||
r = get_value_basic<T>(section, key);
|
r = get_value_basic<T>(section, key);
|
||||||
} catch (except_item_not_found&) {
|
} catch (except_item_not_found const&) {
|
||||||
r = default_value;
|
r = default_value;
|
||||||
music::dlog << "Item \'" << section << "/" << key << " not found in config. Default = \'" << default_value << "\'" << std::endl;
|
music::dlog << "Item \'" << section << "/" << key << " not found in config. Default = \'" << default_value << "\'" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue