Commit 2c51eb14 authored by JINMEI Tatuya's avatar JINMEI Tatuya

[1924] constify, adjusted position of '&'

parent b13d755d
......@@ -478,7 +478,7 @@ Session::group_sendmsg(ConstElementPtr msg, std::string group,
LOG_DEBUG(logger, DBG_TRACE_DETAILED, CC_GROUP_SEND).arg(msg->str()).
arg(group);
ElementPtr env = Element::createMap();
long int nseq = ++impl_->sequence_;
const long int nseq = ++impl_->sequence_;
env->set(isc::util::CC_HEADER_TYPE,
Element::create(isc::util::CC_COMMAND_SEND));
......
......@@ -142,7 +142,7 @@ public:
// buffer. Expects there's at leas one message in the buffer.
SentMessage getSentMessage() {
assert(!sent_messages_.empty());
SentMessage result(sent_messages_.front());
const SentMessage result(sent_messages_.front());
sent_messages_.pop_front();
return (result);
}
......@@ -187,7 +187,7 @@ protected:
void checkSentMessage(const string& expected_hdr, const char* description)
{
SCOPED_TRACE(description);
const SentMessage &msg(sess.getSentMessage());
const SentMessage& msg(sess.getSentMessage());
elementsEqual(expected_hdr, msg.first);
elementsEqual("{\"test\": 42}", msg.second);
}
......
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