Commit 8bab20ff authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2768] Don't use const reference

It should be allowed by C++ standard (and the object be alive before the
function is left), but this is just to be sure.
parent e8757a68
...@@ -862,7 +862,7 @@ ModuleCCSession::rpcCall(const std::string &command, const std::string &group, ...@@ -862,7 +862,7 @@ ModuleCCSession::rpcCall(const std::string &command, const std::string &group,
const std::string &instance, const std::string &to, const std::string &instance, const std::string &to,
const ConstElementPtr &params) const ConstElementPtr &params)
{ {
const ConstElementPtr &command_el(createCommand(command, params)); ConstElementPtr command_el(createCommand(command, params));
const int seq = groupSendMsg(command_el, group, instance, to, true); const int seq = groupSendMsg(command_el, group, instance, to, true);
ConstElementPtr env, answer; ConstElementPtr env, answer;
LOG_DEBUG(config_logger, DBGLVL_TRACE_DETAIL, CONFIG_RPC_SEQ).arg(command). LOG_DEBUG(config_logger, DBGLVL_TRACE_DETAIL, CONFIG_RPC_SEQ).arg(command).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment