Commit ad4d6587 authored by JINMEI Tatuya's avatar JINMEI Tatuya

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


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1673 e5f2f494-b856-4b98-b285-d166d9295462
parent 2d78411d
......@@ -411,7 +411,7 @@ class MapElement : public Element {
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; };
......
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