diff options
| author | 2021-04-06 20:06:18 +0100 | |
|---|---|---|
| committer | 2021-04-07 10:36:11 +0100 | |
| commit | 942fd2bcfd384a12c900999fe663202c87319a68 (patch) | |
| tree | c2bad1906af27afbc3c7d96c3e5ca3c27c83f090 /include/clientprotocolmsg.h | |
| parent | Merge branch 'insp3' into master. (diff) | |
Switch simple iterator loops to use range-based for loops.
Diffstat (limited to 'include/clientprotocolmsg.h')
| -rw-r--r-- | include/clientprotocolmsg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h index 53122cff9..0cb3cfa3c 100644 --- a/include/clientprotocolmsg.h +++ b/include/clientprotocolmsg.h @@ -58,8 +58,8 @@ class ClientProtocol::Messages::Numeric : public ClientProtocol::Message void InitFromNumeric(const ::Numeric::Numeric& numeric) { InitCommand(numeric.GetNumeric()); - for (std::vector<std::string>::const_iterator i = numeric.GetParams().begin(); i != numeric.GetParams().end(); ++i) - PushParamRef(*i); + for (const auto& param : numeric.GetParams()) + PushParamRef(param); } public: |
