aboutsummaryrefslogtreecommitdiffstats
path: root/src/mailboxList.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/mailboxList.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/mailboxList.cpp')
-rw-r--r--src/mailboxList.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mailboxList.cpp b/src/mailboxList.cpp
index f87fb48d..2a6a26bf 100644
--- a/src/mailboxList.cpp
+++ b/src/mailboxList.cpp
@@ -59,7 +59,7 @@ void mailboxList::insertMailboxBefore(ref <mailbox> beforeMailbox, ref <mailbox>
}
-void mailboxList::insertMailboxBefore(const int pos, ref <mailbox> mbox)
+void mailboxList::insertMailboxBefore(const size_t pos, ref <mailbox> mbox)
{
m_list.insertAddressBefore(pos, mbox);
}
@@ -78,7 +78,7 @@ void mailboxList::insertMailboxAfter(ref <mailbox> afterMailbox, ref <mailbox> m
}
-void mailboxList::insertMailboxAfter(const int pos, ref <mailbox> mbox)
+void mailboxList::insertMailboxAfter(const size_t pos, ref <mailbox> mbox)
{
m_list.insertAddressAfter(pos, mbox);
}
@@ -97,7 +97,7 @@ void mailboxList::removeMailbox(ref <mailbox> mbox)
}
-void mailboxList::removeMailbox(const int pos)
+void mailboxList::removeMailbox(const size_t pos)
{
m_list.removeAddress(pos);
}
@@ -109,7 +109,7 @@ void mailboxList::removeAllMailboxes()
}
-int mailboxList::getMailboxCount() const
+size_t mailboxList::getMailboxCount() const
{
return (m_list.getAddressCount());
}
@@ -121,13 +121,13 @@ bool mailboxList::isEmpty() const
}
-ref <mailbox> mailboxList::getMailboxAt(const int pos)
+ref <mailbox> mailboxList::getMailboxAt(const size_t pos)
{
return m_list.getAddressAt(pos).staticCast <mailbox>();
}
-const ref <const mailbox> mailboxList::getMailboxAt(const int pos) const
+const ref <const mailbox> mailboxList::getMailboxAt(const size_t pos) const
{
return m_list.getAddressAt(pos).staticCast <const mailbox>();
}