summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-15 01:07:47 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-15 02:05:50 +0200
commite2150d04662a4ba8b5304dabcc74be0bacded5b7 (patch)
treecbeb05c2f056a7d5ac4a08e7b80799b5cfd4785b /src/configuration.cpp
parentedda37acb9d66f2751ef712c83dced62428fa685 (diff)
downloadmv-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.gz
mv-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.bz2
mv-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.xz
mv-e2150d04662a4ba8b5304dabcc74be0bacded5b7.zip
Fix code style, apply some fixes after checking with cppcheck from git.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 1e79d1e54..3941e6c9b 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -55,7 +55,7 @@ void Configuration::setValue(const std::string &key, const std::string &value)
if (list != mListenerMap.end())
{
Listeners listeners = list->second;
- for (ListenerIterator i = listeners.begin(); i != listeners.end(); i++)
+ for (ListenerIterator i = listeners.begin(); i != listeners.end(); ++i)
(*i)->optionChanged(key);
}
}
@@ -114,7 +114,7 @@ void ConfigurationObject::deleteList(const std::string &name)
{
for (ConfigurationList::const_iterator
it = mContainerOptions[name].begin();
- it != mContainerOptions[name].end(); it++)
+ it != mContainerOptions[name].end(); ++it)
{
delete *it;
}
@@ -126,7 +126,7 @@ void ConfigurationObject::clear()
{
for (std::map<std::string, ConfigurationList>::const_iterator
it = mContainerOptions.begin();
- it != mContainerOptions.end(); it++)
+ it != mContainerOptions.end(); ++it)
{
deleteList(it->first);
}
@@ -143,7 +143,7 @@ void Configuration::cleanDefaults()
if (mDefaultsData)
{
for (DefaultsData::const_iterator iter = mDefaultsData->begin();
- iter != mDefaultsData->end(); iter++)
+ iter != mDefaultsData->end(); ++iter)
{
delete(iter->second);
}
@@ -369,7 +369,7 @@ void ConfigurationObject::writeToXML(xmlTextWriterPtr writer)
for (std::map<std::string, ConfigurationList>::const_iterator
it = mContainerOptions.begin();
- it != mContainerOptions.end(); it++)
+ it != mContainerOptions.end(); ++it)
{
const char *name = it->first.c_str();
@@ -378,7 +378,7 @@ void ConfigurationObject::writeToXML(xmlTextWriterPtr writer)
// recurse on all elements
for (ConfigurationList::const_iterator elt_it = it->second.begin();
- elt_it != it->second.end(); elt_it++)
+ elt_it != it->second.end(); ++elt_it)
{
xmlTextWriterStartElement(writer, BAD_CAST name);
(*elt_it)->writeToXML(writer);