diff options
Diffstat (limited to 'src/net/pop3')
-rw-r--r-- | src/net/pop3/POP3Response.cpp | 4 | ||||
-rw-r--r-- | src/net/pop3/POP3Store.cpp | 2 | ||||
-rw-r--r-- | src/net/pop3/POP3Utils.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/net/pop3/POP3Response.cpp b/src/net/pop3/POP3Response.cpp index ab792611..6ca0ad75 100644 --- a/src/net/pop3/POP3Response.cpp +++ b/src/net/pop3/POP3Response.cpp @@ -136,13 +136,13 @@ const string POP3Response::getText() const } -const string POP3Response::getLineAt(const unsigned int pos) const +const string POP3Response::getLineAt(const size_t pos) const { return m_lines[pos]; } -unsigned int POP3Response::getLineCount() const +size_t POP3Response::getLineCount() const { return m_lines.size(); } diff --git a/src/net/pop3/POP3Store.cpp b/src/net/pop3/POP3Store.cpp index a1dac0a0..4e3f4512 100644 --- a/src/net/pop3/POP3Store.cpp +++ b/src/net/pop3/POP3Store.cpp @@ -653,7 +653,7 @@ const std::vector <string> POP3Store::getCapabilities() if (response->isSuccess()) { - for (unsigned int i = 0, n = response->getLineCount() ; i < n ; ++i) + for (size_t i = 0, n = response->getLineCount() ; i < n ; ++i) res.push_back(response->getLineAt(i)); } diff --git a/src/net/pop3/POP3Utils.cpp b/src/net/pop3/POP3Utils.cpp index c065b695..c4654956 100644 --- a/src/net/pop3/POP3Utils.cpp +++ b/src/net/pop3/POP3Utils.cpp @@ -43,7 +43,7 @@ void POP3Utils::parseMultiListOrUidlResponse(ref <POP3Response> response, std::m { std::map <int, string> ids; - for (unsigned int i = 0, n = response->getLineCount() ; i < n ; ++i) + for (size_t i = 0, n = response->getLineCount() ; i < n ; ++i) { string line = response->getLineAt(i); string::iterator it = line.begin(); |