Skip to content

Commit

Permalink
(#279) Устранена ошибка ссылки на rvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelicHedgehog committed Nov 22, 2023
1 parent 7340be4 commit b5ca6d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/Objects/src/FiniteAutomaton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2492,8 +2492,9 @@ Regex FiniteAutomaton::to_regex(iLogTemplate* log) const {
for (const auto& [symbol, states_to] : state.transitions) {
for (int state_index_to : states_to) {
if (SLAE[state.index].count(state_index_to)) {
Regex symbol_regex{symbol};
SLAE[state.index][state_index_to].regex_alt(&SLAE[state.index][state_index_to],
&Regex(symbol));
&symbol_regex);
} else {
SLAE[state.index].insert({state_index_to, Regex(symbol)});
}
Expand Down

0 comments on commit b5ca6d5

Please sign in to comment.