aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2010-03-16 11:54:11 +0000
committerVincent Richard <[email protected]>2010-03-16 11:54:11 +0000
commit6b713d502e2f5d4af0391a5e42b9591f12036a7f (patch)
tree5176a32e18b82f1bff231051be769caafeb841fb
parentReturn false instead of throwing an exception if file does not exist in isDir... (diff)
downloadvmime-6b713d502e2f5d4af0391a5e42b9591f12036a7f.tar.gz
vmime-6b713d502e2f5d4af0391a5e42b9591f12036a7f.zip
Fixed calls to 'empty' instead of 'clear' (thanks to John van der Kamp, from Zarafa).
-rw-r--r--src/mailbox.cpp4
1 files 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)