From 5f2301a9d62a145ef0e244de5dab6e3c7f71a70b Mon Sep 17 00:00:00 2001 From: Tomas Pecka <peckato1@fit.cvut.cz> Date: Fri, 6 Nov 2015 15:27:33 +0100 Subject: [PATCH] clang3.7 build fix --- alib2algo/src/automaton/transform/Compaction.cpp | 2 +- alib2data/src/automaton/Automaton.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alib2algo/src/automaton/transform/Compaction.cpp b/alib2algo/src/automaton/transform/Compaction.cpp index 3e61aac160..534814a7b9 100644 --- a/alib2algo/src/automaton/transform/Compaction.cpp +++ b/alib2algo/src/automaton/transform/Compaction.cpp @@ -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; diff --git a/alib2data/src/automaton/Automaton.cpp b/alib2data/src/automaton/Automaton.cpp index 44c46338ba..e9a7fc7a42 100644 --- a/alib2data/src/automaton/Automaton.cpp +++ b/alib2data/src/automaton/Automaton.cpp @@ -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." ); -- GitLab