summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-23 00:49:48 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-23 00:49:48 +0300
commit6c9e2b6ed9f67faab400f1876ada6e635f6abf9e (patch)
tree38ed163daaf39df016ccd4b84bee363276f32760 /src/configuration.h
parentc4e562fffe134b86a35800dbe906afcf761879bc (diff)
downloadManaVerse-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.tar.gz
ManaVerse-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.tar.bz2
ManaVerse-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.tar.xz
ManaVerse-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.zip
add const and some minor changes in configuration class.
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 5d1554064..d9e3af19a 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -149,11 +149,11 @@ class ConfigurationObject
for (IT it = begin; it != end; it++)
{
- ConfigurationObject *wrobj
+ ConfigurationObject *const wrobj
= manager->writeConfigItem(*it, nextobj);
if (wrobj)
{ // wrote something
- assert (wrobj == nextobj);
+// assert (wrobj == nextobj);
nextobj = new ConfigurationObject;
list->push_back(wrobj);
}
@@ -181,7 +181,7 @@ class ConfigurationObject
CONT getList(const std::string &name, CONT empty,
ConfigurationListManager<T, CONT> *manager)
{
- ConfigurationList *list = &(mContainerOptions[name]);
+ ConfigurationList *const list = &(mContainerOptions[name]);
CONT container = empty;
if (!manager)