From 6b713d502e2f5d4af0391a5e42b9591f12036a7f Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 16 Mar 2010 11:54:11 +0000 Subject: [PATCH] Fixed calls to 'empty' instead of 'clear' (thanks to John van der Kamp, from Zarafa). --- src/mailbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mailbox.cpp b/src/mailbox.cpp index 036f003c..5cb0139d 100644 --- a/src/mailbox.cpp +++ b/src/mailbox.cpp @@ -311,7 +311,7 @@ void mailbox::parse(const string& buffer, const string::size_type position, // (email address is mandatory, whereas name is optional). if (address.empty() && !name.empty()) { - m_email.empty(); + m_email.clear(); m_email.reserve(name.size()); m_name.removeAllWords(); @@ -324,7 +324,7 @@ void mailbox::parse(const string& buffer, const string::size_type position, else { text::decodeAndUnfold(name, &m_name); - m_email.empty(); + m_email.clear(); m_email.reserve(address.size()); for (string::size_type i = 0 ; i < address.size() ; ++i)