From 7e265b05f440ed81b80f2de496c9d13221a69fe0 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 10 Dec 2013 08:52:51 +0100 Subject: Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes. --- src/addressList.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/addressList.cpp') diff --git a/src/addressList.cpp b/src/addressList.cpp index 15b9227b..5c7d34ac 100644 --- a/src/addressList.cpp +++ b/src/addressList.cpp @@ -51,12 +51,12 @@ addressList::~addressList() void addressList::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) { removeAllAddresses(); - string::size_type pos = position; + size_t pos = position; while (pos < end) { @@ -75,9 +75,9 @@ void addressList::parseImpl void addressList::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 { - string::size_type pos = curLinePos; + size_t pos = curLinePos; generationContext tmpCtx(ctx); tmpCtx.setMaxLineLength(tmpCtx.getMaxLineLength() - 2); -- cgit v1.2.3