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
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- coding: utf-8 -*-
|
||||
** Copyright (C) 2014, 2015, 2016, 2017 Laboratoire de Recherche et
|
||||
** Développement de l'Epita (LRDE).
|
||||
** Copyright (C) 2014-2018 Laboratoire de Recherche et Développement
|
||||
** de l'Epita (LRDE).
|
||||
**
|
||||
** This file is part of Spot, a model checking library.
|
||||
**
|
||||
|
|
@ -2576,7 +2576,7 @@ namespace spot
|
|||
automaton_stream_parser p(filename, localopts);
|
||||
pa = p.parse(dict, env);
|
||||
}
|
||||
catch (std::runtime_error& e)
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (opts.raise_errors)
|
||||
throw;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue