Commit 3b4c9aa2 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

avoid copying ModuleSpec in getModuleSpec() by returning a reference to it...

avoid copying ModuleSpec in getModuleSpec() by returning a reference to it instead of returning a full object.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac310@2802 e5f2f494-b856-4b98-b285-d166d9295462
parent c05af906
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
const std::string& identifier) const; const std::string& identifier) const;
/// Returns the ModuleSpec associated with this ConfigData object /// Returns the ModuleSpec associated with this ConfigData object
const ModuleSpec getModuleSpec() const { return (_module_spec); } const ModuleSpec& getModuleSpec() const { return (_module_spec); }
/// Set the ModuleSpec associated with this ConfigData object /// Set the ModuleSpec associated with this ConfigData object
void setModuleSpec(ModuleSpec module_spec) { _module_spec = module_spec; }; void setModuleSpec(ModuleSpec module_spec) { _module_spec = module_spec; };
......
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