BIND 10 trac2768, updated. 8bab20ff2358dfcc7d7f09520688b9a07bbc1ea3 [2768] Don't use const reference
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Mar 7 09:37:12 UTC 2013
The branch, trac2768 has been updated
via 8bab20ff2358dfcc7d7f09520688b9a07bbc1ea3 (commit)
from e8757a6861d8328cf7f8f2bd815af3a6461cfdc9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8bab20ff2358dfcc7d7f09520688b9a07bbc1ea3
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Thu Mar 7 10:35:46 2013 +0100
[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.
-----------------------------------------------------------------------
Summary of changes:
src/lib/config/ccsession.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/config/ccsession.cc b/src/lib/config/ccsession.cc
index bf25050..c649e27 100644
--- a/src/lib/config/ccsession.cc
+++ b/src/lib/config/ccsession.cc
@@ -862,7 +862,7 @@ ModuleCCSession::rpcCall(const std::string &command, const std::string &group,
const std::string &instance, const std::string &to,
const ConstElementPtr ¶ms)
{
- const ConstElementPtr &command_el(createCommand(command, params));
+ ConstElementPtr command_el(createCommand(command, params));
const int seq = groupSendMsg(command_el, group, instance, to, true);
ConstElementPtr env, answer;
LOG_DEBUG(config_logger, DBGLVL_TRACE_DETAIL, CONFIG_RPC_SEQ).arg(command).
More information about the bind10-changes
mailing list