diff options
author | Vincent Richard <[email protected]> | 2012-12-12 15:35:55 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2012-12-12 15:35:55 +0000 |
commit | 3a5621c2aa3931be608508d4fadc42c2a09cb251 (patch) | |
tree | a39a344cbacdc9524122536ecbf8866e225e8230 /src/htmlTextPart.cpp | |
parent | Do not re-encode data if it is already encoded (thanks to Mehmet Bozkurt). (diff) | |
download | vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.tar.gz vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.zip |
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/htmlTextPart.cpp')
-rw-r--r-- | src/htmlTextPart.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <bodyPart> /* message */, ref <bodyPart> paren void htmlTextPart::findEmbeddedParts(const bodyPart& part, std::vector <ref <const bodyPart> >& cidParts, std::vector <ref <const bodyPart> >& locParts) { - for (int i = 0 ; i < part.getBody()->getPartCount() ; ++i) + for (size_t i = 0 ; i < part.getBody()->getPartCount() ; ++i) { ref <const bodyPart> p = part.getBody()->getPartAt(i); @@ -278,7 +278,7 @@ bool htmlTextPart::findPlainTextPart(const bodyPart& part, const bodyPart& paren { ref <const bodyPart> foundPart = NULL; - for (int i = 0 ; i < part.getBody()->getPartCount() ; ++i) + for (size_t i = 0 ; i < part.getBody()->getPartCount() ; ++i) { const ref <const bodyPart> 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 <const bodyPart> 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 <contentHandler> text) } -int htmlTextPart::getObjectCount() const +size_t htmlTextPart::getObjectCount() const { return m_objects.size(); } -const ref <const htmlTextPart::embeddedObject> htmlTextPart::getObjectAt(const int pos) const +const ref <const htmlTextPart::embeddedObject> htmlTextPart::getObjectAt(const size_t pos) const { return m_objects[pos]; } |