Skip to content

Commit

Permalink
GH-525 Used std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 1, 2024
1 parent 709f7c0 commit 3c63630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4650,7 +4650,7 @@ namespace eosio {

connection_ptr c = std::make_shared<connection>( peer_address, listen_address );
if (c->resolve_and_connect()) {
add(c);
add(std::move(c));

return "added connection";
}
Expand Down

0 comments on commit 3c63630

Please sign in to comment.