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/RpcMethodImpl.h | |
| parent | d8f44ef4f6c5ad86b08658ecba41a84b775b6e69 (diff) | |
Convert to autos and ranged loops
Diffstat (limited to 'src/RpcMethodImpl.h')
| -rw-r--r-- | src/RpcMethodImpl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/RpcMethodImpl.h b/src/RpcMethodImpl.h index fdc5b045..5671d3f9 100644 --- a/src/RpcMethodImpl.h +++ b/src/RpcMethodImpl.h @@ -116,9 +116,8 @@ void toStringList(OutputIterator out, const List* src) if(!src) { return; } - for(List::ValueType::const_iterator i = src->begin(), eoi = src->end(); - i != eoi; ++i) { - const String* s = downcast<String>(*i); + for(auto & elem : *src) { + const String* s = downcast<String>(elem); if(s) { *out++ = s->s(); } |
