diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-23 00:49:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-23 00:49:48 +0300 |
commit | 6c9e2b6ed9f67faab400f1876ada6e635f6abf9e (patch) | |
tree | 38ed163daaf39df016ccd4b84bee363276f32760 /src/configuration.h | |
parent | c4e562fffe134b86a35800dbe906afcf761879bc (diff) | |
download | mv-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.tar.gz mv-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.tar.bz2 mv-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.tar.xz mv-6c9e2b6ed9f67faab400f1876ada6e635f6abf9e.zip |
add const and some minor changes in configuration class.
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 6 |
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) |