aboutsummaryrefslogtreecommitdiffstats
path: root/src/mailboxList.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-12-10 07:52:51 +0000
committerVincent Richard <[email protected]>2013-12-10 07:52:51 +0000
commit7e265b05f440ed81b80f2de496c9d13221a69fe0 (patch)
treed4dad210715ea9d60b2136bd416647d4bc02166a /src/mailboxList.cpp
parentEnforce strict aliasing rule and avoid alignment issues. (diff)
downloadvmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.tar.gz
vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.zip
Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes.
Diffstat (limited to 'src/mailboxList.cpp')
-rw-r--r--src/mailboxList.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailboxList.cpp b/src/mailboxList.cpp
index 7d6674fc..b356a1e7 100644
--- a/src/mailboxList.cpp
+++ b/src/mailboxList.cpp
@@ -177,12 +177,12 @@ const std::vector <shared_ptr <component> > mailboxList::getChildComponents()
void mailboxList::parseImpl
- (const parsingContext& ctx, const string& buffer, const string::size_type position,
- const string::size_type end, string::size_type* newPosition)
+ (const parsingContext& ctx, const string& buffer, const size_t position,
+ const size_t end, size_t* newPosition)
{
m_list.removeAllAddresses();
- string::size_type pos = position;
+ size_t pos = position;
while (pos < end)
{
@@ -214,7 +214,7 @@ void mailboxList::parseImpl
void mailboxList::generateImpl(const generationContext& ctx, utility::outputStream& os,
- const string::size_type curLinePos, string::size_type* newLinePos) const
+ const size_t curLinePos, size_t* newLinePos) const
{
m_list.generate(ctx, os, curLinePos, newLinePos);
}