Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsHttpHandler.cpp @ 944:c068671d12a9 plugins
fixes thanks to cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jun 2014 11:51:55 +0200 |
parents | 3e43de893d88 |
children | 501880d76474 |
comparison
equal
deleted
inserted
replaced
943:3fb427ac3f53 | 944:c068671d12a9 |
---|---|
99 | 99 |
100 | 100 |
101 PluginsHttpHandler::~PluginsHttpHandler() | 101 PluginsHttpHandler::~PluginsHttpHandler() |
102 { | 102 { |
103 for (PImpl::Callbacks::iterator it = pimpl_->callbacks_.begin(); | 103 for (PImpl::Callbacks::iterator it = pimpl_->callbacks_.begin(); |
104 it != pimpl_->callbacks_.end(); it++) | 104 it != pimpl_->callbacks_.end(); ++it) |
105 { | 105 { |
106 delete it->first; | 106 delete it->first; |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
121 std::vector<std::string> groups; | 121 std::vector<std::string> groups; |
122 std::vector<const char*> cgroups; | 122 std::vector<const char*> cgroups; |
123 | 123 |
124 bool found = false; | 124 bool found = false; |
125 for (PImpl::Callbacks::const_iterator it = pimpl_->callbacks_.begin(); | 125 for (PImpl::Callbacks::const_iterator it = pimpl_->callbacks_.begin(); |
126 it != pimpl_->callbacks_.end() && !found; it++) | 126 it != pimpl_->callbacks_.end() && !found; ++it) |
127 { | 127 { |
128 boost::cmatch what; | 128 boost::cmatch what; |
129 if (boost::regex_match(flatUri.c_str(), what, *(it->first))) | 129 if (boost::regex_match(flatUri.c_str(), what, *(it->first))) |
130 { | 130 { |
131 callback = it->second; | 131 callback = it->second; |
164 { | 164 { |
165 request.method = OrthancPluginHttpMethod_Get; | 165 request.method = OrthancPluginHttpMethod_Get; |
166 | 166 |
167 size_t i = 0; | 167 size_t i = 0; |
168 for (Arguments::const_iterator it = getArguments.begin(); | 168 for (Arguments::const_iterator it = getArguments.begin(); |
169 it != getArguments.end(); it++, i++) | 169 it != getArguments.end(); ++it, ++i) |
170 { | 170 { |
171 getKeys[i] = it->first.c_str(); | 171 getKeys[i] = it->first.c_str(); |
172 getValues[i] = it->second.c_str(); | 172 getValues[i] = it->second.c_str(); |
173 } | 173 } |
174 | 174 |