Browse Source

Removed unnecessary std::moves

Former-commit-id: c6436f7873
main
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(); uint_fast64_t stateCount = transitions.getColumnCount();
// Parse the state labeling. // 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. // Construct the result.
DeterministicModelParser<ValueType, RewardValueType>::Result result(std::move(transitions), std::move(labeling)); 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(); uint_fast64_t stateCount = transitions.getColumnCount();
// Parse the state labeling. // 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. // Only parse state rewards if a file is given.
boost::optional<std::vector<RewardValueType>> stateRewards; boost::optional<std::vector<RewardValueType>> stateRewards;

4
src/storage/expressions/ToExprtkStringVisitor.cpp

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