Skip to content

Commit

Permalink
Use std::move for set assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
SharafMohamed committed Sep 25, 2024
1 parent d5eeb5a commit ce2fc76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/log_surgeon/finite_automata/RegexAST.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ class RegexAST {
m_subtree_positive_tags.insert(subtree_positive_tags.begin(), subtree_positive_tags.end());
}

auto set_negative_tags(std::set<uint32_t> const& negative_tags) -> void {
m_negative_tags = negative_tags;
auto set_negative_tags(std::set<uint32_t> negative_tags) -> void {
m_negative_tags = std::move(negative_tags);
}

protected:
Expand Down

0 comments on commit ce2fc76

Please sign in to comment.