ltsmin: fix constness of arguments as suggested by PVS-Studio
For #192. * spot/ltsmin/ltsmin.cc (compile_model): Here. As remove some unused variable.
This commit is contained in:
parent
26e94b774f
commit
630e90b9cc
1 changed files with 1 additions and 2 deletions
|
|
@ -943,7 +943,7 @@ namespace spot
|
|||
// Call spins to compile "foo.prom" as "foo.prom.spins" if the latter
|
||||
// does not exist already or is older.
|
||||
static void
|
||||
compile_model(std::string& filename, std::string& ext)
|
||||
compile_model(std::string filename, const std::string& ext)
|
||||
{
|
||||
std::string command;
|
||||
std::string compiled_ext;
|
||||
|
|
@ -969,7 +969,6 @@ namespace spot
|
|||
if (stat(filename.c_str(), &s) != 0)
|
||||
throw std::runtime_error(std::string("Cannot open ") + filename);
|
||||
|
||||
std::string old = filename;
|
||||
filename += compiled_ext;
|
||||
|
||||
// Remove any directory, because the new file will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue