mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 18:59:20 +00:00
Move instead of copy
This commit is contained in:
@@ -196,8 +196,8 @@ void DHTRoutingTableDeserializer::deserialize(const std::string& filename)
|
||||
|
||||
nodes.push_back(node);
|
||||
}
|
||||
localNode_ = localNode;
|
||||
nodes_ = nodes;
|
||||
localNode_ = std::move(localNode);
|
||||
nodes_ = std::move(nodes);
|
||||
A2_LOG_INFO("DHT routing table was loaded successfully");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user