[svn] commit: r3235 - /trunk/src/lib/cc/data.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Sun Oct 17 05:10:55 UTC 2010
Author: jinmei
Date: Sun Oct 17 05:10:55 2010
New Revision: 3235
Log:
avoid unnecessary copy by using a reference.
I believe it's sufficiently trivial, so skip explicit review.
Modified:
trunk/src/lib/cc/data.cc
Modified: trunk/src/lib/cc/data.cc
==============================================================================
--- trunk/src/lib/cc/data.cc (original)
+++ trunk/src/lib/cc/data.cc Sun Oct 17 05:10:55 2010
@@ -896,7 +896,7 @@
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) {
More information about the bind10-changes
mailing list