diff options
| author | Vincent Richard <[email protected]> | 2008-10-12 10:05:28 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2008-10-12 10:05:28 +0000 |
| commit | 3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d (patch) | |
| tree | 1968196db0d6ae27fd70d0732ff3defed0efb61f /src/word.cpp | |
| parent | Encode '?' characters to avoid breaking QP encoding (Zarafa). (diff) | |
| download | vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.tar.gz vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.zip | |
Fixed compilation warnings.
Diffstat (limited to 'src/word.cpp')
| -rw-r--r-- | src/word.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/word.cpp b/src/word.cpp index 3a0605ff..b129965d 100644 --- a/src/word.cpp +++ b/src/word.cpp @@ -246,21 +246,21 @@ void word::parse(const string& buffer, const string::size_type position, const string::const_iterator charsetPos = p; - for ( ; p != pend && *p != '?' ; ++p); + for ( ; p != pend && *p != '?' ; ++p) {} if (p != pend) // a charset is specified { const string::const_iterator charsetEnd = p; const string::const_iterator encPos = ++p; // skip '?' - for ( ; p != pend && *p != '?' ; ++p); + for ( ; p != pend && *p != '?' ; ++p) {} if (p != pend) // an encoding is specified { //const string::const_iterator encEnd = p; const string::const_iterator dataPos = ++p; // skip '?' - for ( ; p != pend && !(*p == '?' && *(p + 1) == '=') ; ++p); + for ( ; p != pend && !(*p == '?' && *(p + 1) == '=') ; ++p) {} if (p != pend) // some data is specified { @@ -647,13 +647,13 @@ void word::copyFrom(const component& other) } -const bool word::operator==(const word& w) const +bool word::operator==(const word& w) const { return (m_charset == w.m_charset && m_buffer == w.m_buffer); } -const bool word::operator!=(const word& w) const +bool word::operator!=(const word& w) const { return (m_charset != w.m_charset || m_buffer != w.m_buffer); } |
