diff options
| author | Nils Maier <maierman@web.de> | 2013-08-21 05:06:53 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2013-08-21 05:56:17 +0200 |
| commit | 8526ceeb452d23d7aa73d01c6cb0fc8ae5e0377b (patch) | |
| tree | 825b4f5d2a0f18331fbbf24773e80ee0b44b50dc /src/RpcMethod.cc | |
| parent | d8f44ef4f6c5ad86b08658ecba41a84b775b6e69 (diff) | |
Convert to autos and ranged loops
Diffstat (limited to 'src/RpcMethod.cc')
| -rw-r--r-- | src/RpcMethod.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/RpcMethod.cc b/src/RpcMethod.cc index d7a455f3..f7ec08c7 100644 --- a/src/RpcMethod.cc +++ b/src/RpcMethod.cc @@ -102,9 +102,8 @@ void gatherOption // header and index-out option can take array as value const List* oplist = downcast<List>((*first).second); if(oplist) { - for(List::ValueType::const_iterator argiter = oplist->begin(), - eoi = oplist->end(); argiter != eoi; ++argiter) { - const String* opval = downcast<String>(*argiter); + for(auto & elem : *oplist) { + const String* opval = downcast<String>(elem); if(opval) { handler->parse(*option, opval->s()); } |
