always capture exceptions by const references
For #199. * tests/sanity/style.test: Test this. * bin/ltlcross.cc, spot/parseaut/parseaut.yy, tests/ltsmin/modelcheck.cc: Fix it.
This commit is contained in:
parent
2a308182db
commit
2d18ac22fb
4 changed files with 10 additions and 6 deletions
|
|
@ -222,7 +222,7 @@ checked_main(int argc, char **argv)
|
|||
model = spot::ltsmin_model::load(argv[1]).kripke(&ap, dict, deadf,
|
||||
compress_states);
|
||||
}
|
||||
catch (std::runtime_error& e)
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue