From 726af25bf024e8478fccd303a05d062c118dc6be Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 6 Feb 2005 17:14:08 +0000 Subject: Changed protected inheritance to simple composition. --- src/addressList.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/addressList.cpp') 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); } -- cgit v1.2.3