diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-02 18:45:12 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-02 19:36:09 +0000 |
commit | 2e3e90acbe62272901046f754b62ee7ec0d516d9 (patch) | |
tree | c1917be3b1d3f7f7bab2f62218f908faa1f149d8 /contrib/epee/include/storages | |
parent | blockchain: sanity check number of precomputed hash of hash blocks (diff) | |
download | monero-2e3e90acbe62272901046f754b62ee7ec0d516d9.tar.xz |
pass large parameters by const ref, not value
Coverity 136394 136397 136409 136526 136529 136533 175302
Diffstat (limited to 'contrib/epee/include/storages')
-rw-r--r-- | contrib/epee/include/storages/levin_abstract_invoke2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/storages/levin_abstract_invoke2.h b/contrib/epee/include/storages/levin_abstract_invoke2.h index b4f7abca8..d77e7a1f8 100644 --- a/contrib/epee/include/storages/levin_abstract_invoke2.h +++ b/contrib/epee/include/storages/levin_abstract_invoke2.h @@ -108,7 +108,7 @@ namespace epee } template<class t_result, class t_arg, class callback_t, class t_transport> - bool async_invoke_remote_command2(boost::uuids::uuid conn_id, int command, const t_arg& out_struct, t_transport& transport, callback_t cb, size_t inv_timeout = LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED) + bool async_invoke_remote_command2(boost::uuids::uuid conn_id, int command, const t_arg& out_struct, t_transport& transport, const callback_t &cb, size_t inv_timeout = LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED) { typename serialization::portable_storage stg; const_cast<t_arg&>(out_struct).store(stg);//TODO: add true const support to searilzation |