From 944aaba6adf16becb8c82efd35df25f8c90e25b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 00:02:50 +0300 Subject: Improve playerrelation class. --- src/configuration.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/configuration.h') diff --git a/src/configuration.h b/src/configuration.h index 1ac38e9aa..1d703fd99 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -56,8 +56,9 @@ class ConfigurationListManager * \return obj, or otherwise NULL to indicate that this option should * be skipped */ - virtual ConfigurationObject - *writeConfigItem(T value, ConfigurationObject *obj) = 0; + virtual ConfigurationObject *writeConfigItem(const T &value, + ConfigurationObject + *const obj) const = 0; /** * Reads a value from a configuration object @@ -65,8 +66,9 @@ class ConfigurationListManager * \param obj The configuration object to read from * \param container The container to insert the object to */ - virtual CONT readConfigItem(ConfigurationObject *const obj, - CONT container) A_WARN_UNUSED = 0; + virtual CONT readConfigItem(const ConfigurationObject *const obj, + CONT container) + const A_WARN_UNUSED = 0; virtual ~ConfigurationListManager() {} }; -- cgit v1.2.3-60-g2f50