diff options
author | Vincent Richard <[email protected]> | 2012-12-12 15:35:55 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2012-12-12 15:35:55 +0000 |
commit | 3a5621c2aa3931be608508d4fadc42c2a09cb251 (patch) | |
tree | a39a344cbacdc9524122536ecbf8866e225e8230 /src/text.cpp | |
parent | Do not re-encode data if it is already encoded (thanks to Mehmet Bozkurt). (diff) | |
download | vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.tar.gz vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.zip |
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/text.cpp b/src/text.cpp index 91b81e1b..0fda458a 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -159,19 +159,19 @@ void text::appendWord(ref <word> w) } -void text::insertWordBefore(const int pos, ref <word> w) +void text::insertWordBefore(const size_t pos, ref <word> w) { m_words.insert(m_words.begin() + pos, w); } -void text::insertWordAfter(const int pos, ref <word> w) +void text::insertWordAfter(const size_t pos, ref <word> w) { m_words.insert(m_words.begin() + pos + 1, w); } -void text::removeWord(const int pos) +void text::removeWord(const size_t pos) { const std::vector <ref <word> >::iterator it = m_words.begin() + pos; @@ -185,7 +185,7 @@ void text::removeAllWords() } -int text::getWordCount() const +size_t text::getWordCount() const { return (m_words.size()); } @@ -197,13 +197,13 @@ bool text::isEmpty() const } -const ref <word> text::getWordAt(const int pos) +const ref <word> text::getWordAt(const size_t pos) { return (m_words[pos]); } -const ref <const word> text::getWordAt(const int pos) const +const ref <const word> text::getWordAt(const size_t pos) const { return (m_words[pos]); } @@ -354,7 +354,7 @@ void text::encodeAndFold(utility::outputStream& os, const string::size_type maxL string::size_type curLineLength = firstLineOffset; word::generatorState state; - for (int wi = 0 ; wi < getWordCount() ; ++wi) + for (size_t wi = 0 ; wi < getWordCount() ; ++wi) { getWordAt(wi)->generate(os, maxLineLength, curLineLength, &curLineLength, flags, &state); |