Browse Source

avoid unnecessary copy by using a reference.
I believe it's sufficiently trivial, so skip explicit review.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@3235 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 14 years ago
parent
commit
9e132bce95
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/cc/data.cc

+ 1 - 1
src/lib/cc/data.cc

@@ -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) {