aboutsummaryrefslogtreecommitdiffstats
path: root/src/addressList.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-02-06 17:14:08 +0000
committerVincent Richard <[email protected]>2005-02-06 17:14:08 +0000
commit726af25bf024e8478fccd303a05d062c118dc6be (patch)
treee6666b54085966adb6ae0439e72d48ace2356bf5 /src/addressList.cpp
parentMoved 'static' functions into 'parserHelpers' class. (diff)
downloadvmime-726af25bf024e8478fccd303a05d062c118dc6be.tar.gz
vmime-726af25bf024e8478fccd303a05d062c118dc6be.zip
Changed protected inheritance to simple composition.
Diffstat (limited to 'src/addressList.cpp')
-rw-r--r--src/addressList.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/addressList.cpp b/src/addressList.cpp
index 85178961..fc9548b1 100644
--- a/src/addressList.cpp
+++ b/src/addressList.cpp
@@ -119,7 +119,11 @@ addressList& addressList::operator=(const addressList& other)
addressList& addressList::operator=(const mailboxList& other)
{
- copyFrom(other);
+ removeAllAddresses();
+
+ for (int i = 0 ; i < other.getMailboxCount() ; ++i)
+ m_list.push_back(other.getMailboxAt(i)->clone());
+
return (*this);
}