[svn] commit: r1673 - /trunk/src/lib/cc/data.h

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Apr 5 23:34:10 UTC 2010


Author: jinmei
Date: Mon Apr  5 23:34:10 2010
New Revision: 1673

Log:
cleanup: pass a const reference as a copy source instead of an object.

Modified:
    trunk/src/lib/cc/data.h

Modified: trunk/src/lib/cc/data.h
==============================================================================
--- trunk/src/lib/cc/data.h (original)
+++ trunk/src/lib/cc/data.h Mon Apr  5 23:34:10 2010
@@ -411,7 +411,7 @@
     std::map<std::string, ElementPtr> m;
 
 public:
-    MapElement(std::map<std::string, ElementPtr> v) : Element(map), m(v) {};
+    MapElement(const std::map<std::string, ElementPtr>& v) : Element(map), m(v) {};
     const std::map<std::string, ElementPtr>& mapValue() { return m; }
     using Element::getValue;
     bool getValue(std::map<std::string, ElementPtr>& t) { t = m; return true; };




More information about the bind10-changes mailing list