[svn] commit: r2802 - /branches/trac310/src/lib/config/config_data.h
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Aug 25 22:09:44 UTC 2010
Author: jinmei
Date: Wed Aug 25 22:09:43 2010
New Revision: 2802
Log:
avoid copying ModuleSpec in getModuleSpec() by returning a reference to it instead of returning a full object.
Modified:
branches/trac310/src/lib/config/config_data.h
Modified: branches/trac310/src/lib/config/config_data.h
==============================================================================
--- branches/trac310/src/lib/config/config_data.h (original)
+++ branches/trac310/src/lib/config/config_data.h Wed Aug 25 22:09:43 2010
@@ -71,7 +71,7 @@
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; };
More information about the bind10-changes
mailing list