autfilt, dstar2tgba: remove some superfluous arguments

* bin/autfilt.cc, bin/dstar2tgba.cc, bin/common_hoaread.hh: The
filename is stored in the parsed automaton, so do not pass it another
time to the printer.
This commit is contained in:
Alexandre Duret-Lutz 2017-07-26 15:28:41 +02:00
parent 8be8bb2f95
commit 6c3e09489e
3 changed files with 15 additions and 19 deletions

View file

@ -969,8 +969,7 @@ namespace
}
int
process_automaton(const spot::const_parsed_aut_ptr& haut,
const char* filename) override
process_automaton(const spot::const_parsed_aut_ptr& haut) override
{
process_timer timer;
timer.start();
@ -1234,7 +1233,8 @@ namespace
++match_count;
printer.print(aut, timer, nullptr, filename, -1, haut, prefix, suffix);
printer.print(aut, timer, nullptr, haut->filename.c_str(), -1,
haut, prefix, suffix);
if (opt_max_count >= 0 && match_count >= opt_max_count)
abort_run = true;