Browse Source

Removed unnecessary std::moves

Former-commit-id: c6436f7873
tempestpy_adaptions
Mavo 9 years ago
parent
commit
322e470c89
  1. 2
      src/parser/DeterministicModelParser.cpp
  2. 2
      src/parser/NondeterministicModelParser.cpp
  3. 4
      src/storage/expressions/ToExprtkStringVisitor.cpp

2
src/parser/DeterministicModelParser.cpp

@ -23,7 +23,7 @@ namespace storm {
uint_fast64_t stateCount = transitions.getColumnCount();
// Parse the state labeling.
storm::models::sparse::StateLabeling labeling(std::move(storm::parser::AtomicPropositionLabelingParser::parseAtomicPropositionLabeling(stateCount, labelingFilename)));
storm::models::sparse::StateLabeling labeling(storm::parser::AtomicPropositionLabelingParser::parseAtomicPropositionLabeling(stateCount, labelingFilename));
// Construct the result.
DeterministicModelParser<ValueType, RewardValueType>::Result result(std::move(transitions), std::move(labeling));

2
src/parser/NondeterministicModelParser.cpp

@ -24,7 +24,7 @@ namespace storm {
uint_fast64_t stateCount = transitions.getColumnCount();
// Parse the state labeling.
storm::models::sparse::StateLabeling labeling(std::move(storm::parser::AtomicPropositionLabelingParser::parseAtomicPropositionLabeling(stateCount, labelingFilename)));
storm::models::sparse::StateLabeling labeling(storm::parser::AtomicPropositionLabelingParser::parseAtomicPropositionLabeling(stateCount, labelingFilename));
// Only parse state rewards if a file is given.
boost::optional<std::vector<RewardValueType>> stateRewards;

4
src/storage/expressions/ToExprtkStringVisitor.cpp

@ -10,7 +10,7 @@ namespace storm {
stream.str("");
stream.clear();
expression->accept(*this);
return std::move(stream.str());
return stream.str();
}
boost::any ToExprtkStringVisitor::visit(IfThenElseExpression const& expression) {
@ -217,4 +217,4 @@ namespace storm {
return boost::any();
}
}
}
}
Loading…
Cancel
Save