diff options
author | Vincent Richard <[email protected]> | 2005-02-06 17:14:08 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-02-06 17:14:08 +0000 |
commit | 726af25bf024e8478fccd303a05d062c118dc6be (patch) | |
tree | e6666b54085966adb6ae0439e72d48ace2356bf5 /src/addressList.cpp | |
parent | Moved 'static' functions into 'parserHelpers' class. (diff) | |
download | vmime-726af25bf024e8478fccd303a05d062c118dc6be.tar.gz vmime-726af25bf024e8478fccd303a05d062c118dc6be.zip |
Changed protected inheritance to simple composition.
Diffstat (limited to 'src/addressList.cpp')
-rw-r--r-- | src/addressList.cpp | 6 |
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); } |