From 3a5621c2aa3931be608508d4fadc42c2a09cb251 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 12 Dec 2012 16:35:55 +0100 Subject: Trivial 64-bit warning fixes. --- src/messageParser.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/messageParser.cpp') diff --git a/src/messageParser.cpp b/src/messageParser.cpp index 35e0bbad..b8860a0c 100644 --- a/src/messageParser.cpp +++ b/src/messageParser.cpp @@ -165,7 +165,7 @@ bool messageParser::findSubTextParts(ref msg, ref > textParts; - for (int i = 0 ; i < part->getBody()->getPartCount() ; ++i) + for (size_t i = 0 ; i < part->getBody()->getPartCount() ; ++i) { const ref p = part->getBody()->getPartAt(i); @@ -228,7 +228,7 @@ bool messageParser::findSubTextParts(ref msg, ref getBody()->getPartCount()) ; ++i) + for (size_t i = 0 ; !found && (i < part->getBody()->getPartCount()) ; ++i) { found = findSubTextParts(msg, part->getBody()->getPartAt(i)); } @@ -279,13 +279,13 @@ const std::vector > messageParser::getAttachmentList() c } -int messageParser::getAttachmentCount() const +size_t messageParser::getAttachmentCount() const { return (m_attach.size()); } -const ref messageParser::getAttachmentAt(const int pos) const +const ref messageParser::getAttachmentAt(const size_t pos) const { return (m_attach[pos]); } @@ -307,13 +307,13 @@ const std::vector > messageParser::getTextPartList() const } -int messageParser::getTextPartCount() const +size_t messageParser::getTextPartCount() const { return (m_textParts.size()); } -const ref messageParser::getTextPartAt(const int pos) const +const ref messageParser::getTextPartAt(const size_t pos) const { return (m_textParts[pos]); } -- cgit v1.2.3