diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-07 10:17:19 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-07 10:18:12 +0100 |
commit | 9eacfe4fcb48e0cb3c6897d3b4216f5303100f39 (patch) | |
tree | d84a4e584d473b1e5f55f0f0fc9d1f9f2f0763e7 /common/Protocol.cpp | |
parent | wsd: can avoid copying these in AdminModel (diff) | |
download | online-9eacfe4fcb48e0cb3c6897d3b4216f5303100f39.tar.gz online-9eacfe4fcb48e0cb3c6897d3b4216f5303100f39.zip |
common: spell out non-trivial autos to improve readability
Change-Id: Id13bc0e48cec845f5b05171128be5b4efc05c6bc
Diffstat (limited to 'common/Protocol.cpp')
-rw-r--r-- | common/Protocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/Protocol.cpp b/common/Protocol.cpp index a4c089b297..6ab965e185 100644 --- a/common/Protocol.cpp +++ b/common/Protocol.cpp @@ -214,14 +214,14 @@ namespace LOOLProtocol { if (message.size() > name.size() + 1) { - auto pos = message.find(name); + size_t pos = message.find(name); while (pos != std::string::npos) { bool spaceBefore = pos == 0 || message[pos-1] == ' '; - const auto beg = pos + name.size(); + const size_t beg = pos + name.size(); if (spaceBefore && message[beg] == '=') { - const auto end = message.find_first_of(" \n", beg); + const size_t end = message.find_first_of(" \n", beg); value = message.substr(beg + 1, end - beg - 1); return true; } |