Commit 9e132bce authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

avoid unnecessary copy by using a reference.

I believe it's sufficiently trivial, so skip explicit review.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 47a34c87
......@@ -896,7 +896,7 @@ merge(ElementPtr element, ConstElementPtr other) {
isc_throw(TypeError, "merge arguments not MapElements");
std::map<std::string, ConstElementPtr> m = other->mapValue();
const std::map<std::string, ConstElementPtr>& m = other->mapValue();
for (std::map<std::string, ConstElementPtr>::const_iterator it = m.begin();
it != m.end() ; ++it) {
if ((*it).second && (*it).second->getType() != Element::null) {
Supports Markdown
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