aboutsummaryrefslogtreecommitdiffstats
path: root/src/header.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/header.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/header.cpp')
-rw-r--r--src/header.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/header.cpp b/src/header.cpp
index 2dc07b8f..34b5fa6e 100644
--- a/src/header.cpp
+++ b/src/header.cpp
@@ -63,10 +63,10 @@ field-body-contents =
*/
void header::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)
{
- string::size_type pos = position;
+ size_t pos = position;
removeAllFields();
@@ -87,7 +87,7 @@ void header::parseImpl
void header::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
{
// Generate the fields
for (std::vector <shared_ptr <headerField> >::const_iterator it = m_fields.begin() ;
@@ -102,7 +102,7 @@ void header::generateImpl
}
-utility::stream::size_type header::getGeneratedSize(const generationContext& ctx)
+size_t header::getGeneratedSize(const generationContext& ctx)
{
return component::getGeneratedSize(ctx) + 2 * m_fields.size() /* CRLF */;
}