From cf4c1b12c54487892e9f59a9411c29ce9d80302d Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Wed, 20 Mar 2024 23:14:48 +0100 Subject: [PATCH] fixed some const exceptions --- include/config_file.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/config_file.hh b/include/config_file.hh index 92576ac..f0b4491 100644 --- a/include/config_file.hh +++ b/include/config_file.hh @@ -247,7 +247,7 @@ public: { r = get_value_basic(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(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; }