Skip to content
Snippets Groups Projects
Commit 5f2301a9 authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

clang3.7 build fix

parent 77543507
No related branches found
No related tags found
1 merge request!12clang3.7 build fix
......@@ -53,7 +53,7 @@ automaton::CompactNFA Compaction::convert(const automaton::DFA& automaton) {
 
std::map<std::pair<automaton::State, alphabet::Symbol>, automaton::State> transitions;
// only 1 child and nonfinal
while((transitions = std::move(automaton.getTransitionsFromState(q))).size() == 1 && automaton.getFinalStates().count(q) == 0) {
while((transitions = automaton.getTransitionsFromState(q)).size() == 1 && automaton.getFinalStates().count(q) == 0) {
const std::pair<std::pair<automaton::State, alphabet::Symbol>, automaton::State>& transition = * transitions.begin();
path.appendSymbol(transition.first.second);
q = transition.second;
......
......@@ -17,7 +17,7 @@ State createUniqueState(State nextState, const std::set<State>& other) {
do {
nextState.getName().inc();
if(other.count(nextState) == 0)
return std::move(nextState);
return nextState;
} while(++i < INT_MAX);
 
throw AutomatonException("Could not create unique state." );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment