aboutsummaryrefslogtreecommitdiffstats
path: root/src/messageParser.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-12-12 15:35:55 +0000
committerVincent Richard <[email protected]>2012-12-12 15:35:55 +0000
commit3a5621c2aa3931be608508d4fadc42c2a09cb251 (patch)
treea39a344cbacdc9524122536ecbf8866e225e8230 /src/messageParser.cpp
parentDo not re-encode data if it is already encoded (thanks to Mehmet Bozkurt). (diff)
downloadvmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.tar.gz
vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.zip
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/messageParser.cpp')
-rw-r--r--src/messageParser.cpp12
1 files changed, 6 insertions, 6 deletions
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 <const bodyPart> msg, ref <const bodyPa
std::vector <ref <const bodyPart> > textParts;
- 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);
@@ -228,7 +228,7 @@ bool messageParser::findSubTextParts(ref <const bodyPart> msg, ref <const bodyPa
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 = findSubTextParts(msg, part->getBody()->getPartAt(i));
}
@@ -279,13 +279,13 @@ const std::vector <ref <const attachment> > messageParser::getAttachmentList() c
}
-int messageParser::getAttachmentCount() const
+size_t messageParser::getAttachmentCount() const
{
return (m_attach.size());
}
-const ref <const attachment> messageParser::getAttachmentAt(const int pos) const
+const ref <const attachment> messageParser::getAttachmentAt(const size_t pos) const
{
return (m_attach[pos]);
}
@@ -307,13 +307,13 @@ const std::vector <ref <const textPart> > messageParser::getTextPartList() const
}
-int messageParser::getTextPartCount() const
+size_t messageParser::getTextPartCount() const
{
return (m_textParts.size());
}
-const ref <const textPart> messageParser::getTextPartAt(const int pos) const
+const ref <const textPart> messageParser::getTextPartAt(const size_t pos) const
{
return (m_textParts[pos]);
}