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
|
|
@ -1403,7 +1403,7 @@ namespace
|
|||
sm = new
|
||||
spot::scc_info(p, spot::scc_info_options::TRACK_STATES);
|
||||
}
|
||||
catch (std::bad_alloc&)
|
||||
catch (const std::bad_alloc&)
|
||||
{
|
||||
std::cerr << ("warning: not enough memory to build "
|
||||
"product of P") << i << " with state-space";
|
||||
|
|
@ -1440,7 +1440,7 @@ namespace
|
|||
spot::scc_info(p,
|
||||
spot::scc_info_options::TRACK_STATES);
|
||||
}
|
||||
catch (std::bad_alloc&)
|
||||
catch (const std::bad_alloc&)
|
||||
{
|
||||
std::cerr << ("warning: not enough memory to build "
|
||||
"product of N")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue