changeset 944:c068671d12a9 plugins

fixes thanks to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Jun 2014 11:51:55 +0200
parents 3fb427ac3f53
children 743a75b14bef
files Plugins/Engine/PluginsHttpHandler.cpp Plugins/Engine/PluginsManager.cpp
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Engine/PluginsHttpHandler.cpp	Wed Jun 25 11:40:41 2014 +0200
+++ b/Plugins/Engine/PluginsHttpHandler.cpp	Wed Jun 25 11:51:55 2014 +0200
@@ -101,7 +101,7 @@
   PluginsHttpHandler::~PluginsHttpHandler()
   {
     for (PImpl::Callbacks::iterator it = pimpl_->callbacks_.begin(); 
-         it != pimpl_->callbacks_.end(); it++)
+         it != pimpl_->callbacks_.end(); ++it)
     {
       delete it->first;
     }
@@ -123,7 +123,7 @@
 
     bool found = false;
     for (PImpl::Callbacks::const_iterator it = pimpl_->callbacks_.begin(); 
-         it != pimpl_->callbacks_.end() && !found; it++)
+         it != pimpl_->callbacks_.end() && !found; ++it)
     {
       boost::cmatch what;
       if (boost::regex_match(flatUri.c_str(), what, *(it->first)))
@@ -166,7 +166,7 @@
 
         size_t i = 0;
         for (Arguments::const_iterator it = getArguments.begin(); 
-             it != getArguments.end(); it++, i++)
+             it != getArguments.end(); ++it, ++i)
         {
           getKeys[i] = it->first.c_str();
           getValues[i] = it->second.c_str();
--- a/Plugins/Engine/PluginsManager.cpp	Wed Jun 25 11:40:41 2014 +0200
+++ b/Plugins/Engine/PluginsManager.cpp	Wed Jun 25 11:51:55 2014 +0200
@@ -159,7 +159,7 @@
 
     for (std::list<IPluginServiceProvider*>::iterator
            it = that->serviceProviders_.begin(); 
-         it != that->serviceProviders_.end(); it++)
+         it != that->serviceProviders_.end(); ++it)
     {
       try
       {
@@ -199,7 +199,7 @@
 
   PluginsManager::~PluginsManager()
   {
-    for (Plugins::iterator it = plugins_.begin(); it != plugins_.end(); it++)
+    for (Plugins::iterator it = plugins_.begin(); it != plugins_.end(); ++it)
     {
       if (it->second != NULL)
       {