Skip to content

Commit

Permalink
Mark const method as const
Browse files Browse the repository at this point in the history
  • Loading branch information
Adda0 committed Sep 11, 2023
1 parent c5df839 commit 1a1a054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/mata/nfa/nfa.hh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public:
* essentially only useful for testing purposes.
* @return True if automata are exactly identical, false otherwise.
*/
bool is_identical(const Nfa & aut);
bool is_identical(const Nfa& aut) const;

/**
* @brief Get set of reachable states.
Expand Down
2 changes: 1 addition & 1 deletion src/nfa/nfa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void Nfa::clear() {
final.clear();
}

bool Nfa::is_identical(const Nfa& aut) {
bool Nfa::is_identical(const Nfa& aut) const {
if (utils::OrdVector<State>(initial) != utils::OrdVector<State>(aut.initial)) {
return false;
}
Expand Down

0 comments on commit 1a1a054

Please sign in to comment.