mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-05 06:17:45 -07:00
fixes: catching polymorphic type by value [-Wcatch-value=]
This commit is contained in:
parent
414849ebb6
commit
c87ead481e
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue