diff options
author | Vincent Richard <[email protected]> | 2006-01-08 10:57:46 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-01-08 10:57:46 +0000 |
commit | 6bd21074a3512c00e51df5289e099ac0fd11f01c (patch) | |
tree | cee7d20144a8cfe946b2534c9b5a177045362f4c /src/word.cpp | |
parent | Fixed compilation problem with GCC 4. (diff) | |
download | vmime-6bd21074a3512c00e51df5289e099ac0fd11f01c.tar.gz vmime-6bd21074a3512c00e51df5289e099ac0fd11f01c.zip |
Code clean-up.
Diffstat (limited to 'src/word.cpp')
-rw-r--r-- | src/word.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/word.cpp b/src/word.cpp index ccb5d554..45dbc183 100644 --- a/src/word.cpp +++ b/src/word.cpp @@ -91,7 +91,7 @@ ref <word> word::parseNext(const string& buffer, const string::size_type positio while (pos != end && parserHelpers::isSpace(buffer[pos])) ++pos; - unencoded += string(buffer.begin() + startPos, buffer.begin() + endPos); + unencoded += buffer.substr(startPos, endPos - startPos); unencoded += ' '; startPos = pos; @@ -101,7 +101,7 @@ ref <word> word::parseNext(const string& buffer, const string::size_type positio buffer[pos] == '=' && buffer[pos + 1] == '?') { // Check whether there is some unencoded text before - unencoded += string(buffer.begin() + startPos, buffer.begin() + pos); + unencoded += buffer.substr(startPos, pos - startPos); if (!unencoded.empty()) { @@ -183,7 +183,7 @@ ref <word> word::parseNext(const string& buffer, const string::size_type positio if (startPos != pos && !isFirst && prevIsEncoded) unencoded += ' '; - unencoded += string(buffer.begin() + startPos, buffer.begin() + end); + unencoded += buffer.substr(startPos, end - startPos); ref <word> w = vmime::create <word>(unencoded, charset(charsets::US_ASCII)); w->setParsedBounds(position, end); |