mirror of https://github.com/aria2/aria2
Move instead of copy
parent
f0015d2175
commit
c2109a5aca
|
@ -196,8 +196,8 @@ void DHTRoutingTableDeserializer::deserialize(const std::string& filename)
|
||||||
|
|
||||||
nodes.push_back(node);
|
nodes.push_back(node);
|
||||||
}
|
}
|
||||||
localNode_ = localNode;
|
localNode_ = std::move(localNode);
|
||||||
nodes_ = nodes;
|
nodes_ = std::move(nodes);
|
||||||
A2_LOG_INFO("DHT routing table was loaded successfully");
|
A2_LOG_INFO("DHT routing table was loaded successfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue