aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/storages
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 /contrib/epee/include/storages
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 'contrib/epee/include/storages')
-rw-r--r--contrib/epee/include/storages/levin_abstract_invoke2.h2
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