fixes: catching polymorphic type by value [-Wcatch-value=]

This commit is contained in:
Raoul Rubien 2025-09-09 21:27:41 +02:00 committed by Dipl.-Ing. Raoul Rubien, BSc
parent 414849ebb6
commit c87ead481e
2 changed files with 2 additions and 2 deletions

View file

@ -711,7 +711,7 @@ std::string AppConfig::load()
}
}
}
} catch(std::exception err) {
} catch(const std::exception &err) {
BOOST_LOG_TRIVIAL(info) << format("parse app config \"%1%\", error: %2%", AppConfig::loading_path(), err.what());
return err.what();

View file

@ -712,7 +712,7 @@ unsigned int Step::get_triangle_num(double linear_defletion, double angle_deflet
return 0;
}
}
} catch(Exception e) {
} catch(const Exception &e) {
return 0;
}