aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-02 18:45:12 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-02 19:36:09 +0000
commit2e3e90acbe62272901046f754b62ee7ec0d516d9 (patch)
treec1917be3b1d3f7f7bab2f62218f908faa1f149d8 /src/p2p/net_node.inl
parentblockchain: sanity check number of precomputed hash of hash blocks (diff)
downloadmonero-2e3e90acbe62272901046f754b62ee7ec0d516d9.tar.xz
pass large parameters by const ref, not value
Coverity 136394 136397 136409 136526 136529 136533 175302
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r--src/p2p/net_node.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 152dba942..6e6e12009 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -1477,7 +1477,7 @@ namespace nodetool
}
//-----------------------------------------------------------------------------------
template<class t_payload_net_handler> template<class t_callback>
- bool node_server<t_payload_net_handler>::try_ping(basic_node_data& node_data, p2p_connection_context& context, t_callback cb)
+ bool node_server<t_payload_net_handler>::try_ping(basic_node_data& node_data, p2p_connection_context& context, const t_callback &cb)
{
if(!node_data.my_port)
return false;