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/htmlTextPart.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/htmlTextPart.cpp') diff --git a/src/htmlTextPart.cpp b/src/htmlTextPart.cpp index 98524afb..578796bd 100644 --- a/src/htmlTextPart.cpp +++ b/src/htmlTextPart.cpp @@ -56,7 +56,7 @@ const mediaType htmlTextPart::getType() const } -int htmlTextPart::getPartCount() const +size_t htmlTextPart::getPartCount() const { return (m_plainText->isEmpty() ? 1 : 2); } @@ -131,7 +131,7 @@ void htmlTextPart::generateIn(ref /* message */, ref paren void htmlTextPart::findEmbeddedParts(const bodyPart& part, std::vector >& cidParts, std::vector >& locParts) { - for (int i = 0 ; i < part.getBody()->getPartCount() ; ++i) + for (size_t i = 0 ; i < part.getBody()->getPartCount() ; ++i) { ref p = part.getBody()->getPartAt(i); @@ -278,7 +278,7 @@ bool htmlTextPart::findPlainTextPart(const bodyPart& part, const bodyPart& paren { ref foundPart = NULL; - 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); @@ -294,7 +294,7 @@ bool htmlTextPart::findPlainTextPart(const bodyPart& part, const bodyPart& paren bool found = false; // Now, search for the alternative plain text part - for (int i = 0 ; !found && i < part.getBody()->getPartCount() ; ++i) + for (size_t i = 0 ; !found && i < part.getBody()->getPartCount() ; ++i) { const ref p = part.getBody()->getPartAt(i); @@ -332,7 +332,7 @@ bool htmlTextPart::findPlainTextPart(const bodyPart& part, const bodyPart& paren bool found = false; - for (int i = 0 ; !found && i < part.getBody()->getPartCount() ; ++i) + for (size_t i = 0 ; !found && i < part.getBody()->getPartCount() ; ++i) { found = findPlainTextPart(*part.getBody()->getPartAt(i), parent, textPart); } @@ -377,13 +377,13 @@ void htmlTextPart::setText(ref text) } -int htmlTextPart::getObjectCount() const +size_t htmlTextPart::getObjectCount() const { return m_objects.size(); } -const ref htmlTextPart::getObjectAt(const int pos) const +const ref htmlTextPart::getObjectAt(const size_t pos) const { return m_objects[pos]; } -- cgit v1.2.3