Skip to content

Commit

Permalink
Fix unqualified std::move instances (openmm#4402)
Browse files Browse the repository at this point in the history
causing warnings by Clang
  • Loading branch information
jhenin authored Jan 22, 2024
1 parent a7d0e18 commit ed710a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/lepton/src/ExpressionTreeNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ExpressionTreeNode::ExpressionTreeNode(Operation* operation) : operation(operati
ExpressionTreeNode::ExpressionTreeNode(const ExpressionTreeNode& node) : operation(node.operation == NULL ? NULL : node.operation->clone()), children(node.getChildren()) {
}

ExpressionTreeNode::ExpressionTreeNode(ExpressionTreeNode&& node) : operation(node.operation), children(move(node.children)) {
ExpressionTreeNode::ExpressionTreeNode(ExpressionTreeNode&& node) : operation(node.operation), children(std::move(node.children)) {
node.operation = NULL;
node.children.clear();
}
Expand Down Expand Up @@ -108,7 +108,7 @@ ExpressionTreeNode& ExpressionTreeNode::operator=(ExpressionTreeNode&& node) {
if (operation != NULL)
delete operation;
operation = node.operation;
children = move(node.children);
children = std::move(node.children);
node.operation = NULL;
node.children.clear();
return *this;
Expand Down

0 comments on commit ed710a0

Please sign in to comment.