diff options
| author | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
| commit | 7e265b05f440ed81b80f2de496c9d13221a69fe0 (patch) | |
| tree | d4dad210715ea9d60b2136bd416647d4bc02166a /src/net/smtp/SMTPResponse.cpp | |
| parent | Enforce strict aliasing rule and avoid alignment issues. (diff) | |
| download | vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.tar.gz vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.zip | |
Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes.
Diffstat (limited to 'src/net/smtp/SMTPResponse.cpp')
| -rw-r--r-- | src/net/smtp/SMTPResponse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/smtp/SMTPResponse.cpp b/src/net/smtp/SMTPResponse.cpp index baefc38d..f7980351 100644 --- a/src/net/smtp/SMTPResponse.cpp +++ b/src/net/smtp/SMTPResponse.cpp @@ -128,11 +128,11 @@ const string SMTPResponse::readResponseLine() while (true) { // Get a line from the response buffer - const string::size_type lineEnd = currentBuffer.find_first_of('\n'); + const size_t lineEnd = currentBuffer.find_first_of('\n'); if (lineEnd != string::npos) { - string::size_type actualLineEnd = lineEnd; + size_t actualLineEnd = lineEnd; if (actualLineEnd != 0 && currentBuffer[actualLineEnd - 1] == '\r') // CRLF case actualLineEnd--; |
