refactor(safe_main): use const ref for std::function

This commit is contained in:
Marcus Holland-Moritz 2025-03-16 18:24:35 +01:00
parent cfcd456c76
commit ba0bdbdc91
2 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,6 @@
namespace dwarfs::tool {
int safe_main(std::function<int(void)> fn);
int safe_main(std::function<int(void)> const& fn);
} // namespace dwarfs::tool

View File

@ -29,7 +29,7 @@
namespace dwarfs::tool {
int safe_main(std::function<int(void)> fn) {
int safe_main(std::function<int(void)> const& fn) {
try {
install_signal_handlers();
setup_default_locale();