Browse Source

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
JINMEI Tatuya 14 years ago
parent
commit
3b4c9aa2c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/config/config_data.h

+ 1 - 1
src/lib/config/config_data.h

@@ -71,7 +71,7 @@ public:
                              const std::string& identifier) const;
 
     /// 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
     void setModuleSpec(ModuleSpec module_spec) { _module_spec = module_spec; };