propagate: fix constness of scc_info argument
* spot/twaalgos/degen.cc, spot/twaalgos/degen.hh (propagate_marks_vector, propagate_marks_here): Take the scc_info* argument as const.
This commit is contained in:
parent
20e52cf7a5
commit
b073e70880
2 changed files with 4 additions and 4 deletions
|
|
@ -1100,7 +1100,7 @@ namespace spot
|
||||||
|
|
||||||
std::vector<acc_cond::mark_t>
|
std::vector<acc_cond::mark_t>
|
||||||
propagate_marks_vector(const const_twa_graph_ptr& aut,
|
propagate_marks_vector(const const_twa_graph_ptr& aut,
|
||||||
scc_info* si)
|
const scc_info* si)
|
||||||
{
|
{
|
||||||
bool own_si = true;
|
bool own_si = true;
|
||||||
if (si)
|
if (si)
|
||||||
|
|
@ -1150,7 +1150,7 @@ namespace spot
|
||||||
return marks;
|
return marks;
|
||||||
}
|
}
|
||||||
|
|
||||||
void propagate_marks_here(twa_graph_ptr& aut, scc_info* si)
|
void propagate_marks_here(twa_graph_ptr& aut, const scc_info* si)
|
||||||
{
|
{
|
||||||
auto marks = propagate_marks_vector(aut, si);
|
auto marks = propagate_marks_vector(aut, si);
|
||||||
for (auto& e: aut->edges())
|
for (auto& e: aut->edges())
|
||||||
|
|
|
||||||
|
|
@ -172,10 +172,10 @@ namespace spot
|
||||||
/// @{
|
/// @{
|
||||||
SPOT_API std::vector<acc_cond::mark_t>
|
SPOT_API std::vector<acc_cond::mark_t>
|
||||||
propagate_marks_vector(const const_twa_graph_ptr& aut,
|
propagate_marks_vector(const const_twa_graph_ptr& aut,
|
||||||
scc_info* si = nullptr);
|
const scc_info* si = nullptr);
|
||||||
|
|
||||||
SPOT_API void
|
SPOT_API void
|
||||||
propagate_marks_here(twa_graph_ptr& aut,
|
propagate_marks_here(twa_graph_ptr& aut,
|
||||||
scc_info* si = nullptr);
|
const scc_info* si = nullptr);
|
||||||
/// @}
|
/// @}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue