Fixed calls to 'empty' instead of 'clear' (thanks to John van der Kamp, from Zarafa).

This commit is contained in:
Vincent Richard 2010-03-16 11:54:11 +00:00
parent 2854eed183
commit 6b713d502e

View File

@ -311,7 +311,7 @@ void mailbox::parse(const string& buffer, const string::size_type position,
// (email address is mandatory, whereas name is optional). // (email address is mandatory, whereas name is optional).
if (address.empty() && !name.empty()) if (address.empty() && !name.empty())
{ {
m_email.empty(); m_email.clear();
m_email.reserve(name.size()); m_email.reserve(name.size());
m_name.removeAllWords(); m_name.removeAllWords();
@ -324,7 +324,7 @@ void mailbox::parse(const string& buffer, const string::size_type position,
else else
{ {
text::decodeAndUnfold(name, &m_name); text::decodeAndUnfold(name, &m_name);
m_email.empty(); m_email.clear();
m_email.reserve(address.size()); m_email.reserve(address.size());
for (string::size_type i = 0 ; i < address.size() ; ++i) for (string::size_type i = 0 ; i < address.size() ; ++i)