Enable performance-move-const-arg clang-tidy check (#6319)
This commit is contained in:
committed by
GitHub
parent
869b3fae82
commit
8e74b7af9d
@@ -38,8 +38,8 @@ makeSpatialOrder(const BisectionGraphView &view, const double ratio, const doubl
|
||||
{
|
||||
struct NodeWithCoordinate
|
||||
{
|
||||
NodeWithCoordinate(NodeID nid_, util::Coordinate coordinate_)
|
||||
: nid{nid_}, coordinate{std::move(coordinate_)}
|
||||
NodeWithCoordinate(NodeID nid_, const util::Coordinate &coordinate_)
|
||||
: nid{nid_}, coordinate{coordinate_}
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -86,13 +86,13 @@ RecursiveBisection::RecursiveBisection(BisectionGraph &bisection_graph_,
|
||||
TreeNode left_node{std::move(left_graph), node.depth + 1};
|
||||
|
||||
if (!terminal(left_node))
|
||||
feeder.add(std::move(left_node));
|
||||
feeder.add(left_node);
|
||||
|
||||
BisectionGraphView right_graph{bisection_graph, center, node.graph.End()};
|
||||
TreeNode right_node{std::move(right_graph), node.depth + 1};
|
||||
|
||||
if (!terminal(right_node))
|
||||
feeder.add(std::move(right_node));
|
||||
feeder.add(right_node);
|
||||
});
|
||||
|
||||
TIMER_STOP(bisection);
|
||||
|
||||
Reference in New Issue
Block a user