Diffstat (limited to 'noncore/net/mail/mailtypes.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/mailtypes.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/net/mail/mailtypes.cpp b/noncore/net/mail/mailtypes.cpp index f56bb63..9c312e9 100644 --- a/noncore/net/mail/mailtypes.cpp +++ b/noncore/net/mail/mailtypes.cpp @@ -167,5 +167,5 @@ RecBody::RecBody() : m_BodyText(),m_PartsList(),m_description() { - m_PartsList.setAutoDelete(true); + m_PartsList.clear(); } @@ -184,11 +184,11 @@ const QString& RecBody::Bodytext()const } -void RecBody::setParts(const QList<RecPart>&parts) +void RecBody::setParts(const QValueList<RecPart>&parts) { + m_PartsList.clear(); m_PartsList = parts; - m_PartsList.setAutoDelete(true); } -const QList<RecPart>& RecBody::Parts()const +const QValueList<RecPart>& RecBody::Parts()const { return m_PartsList; @@ -197,6 +197,5 @@ const QList<RecPart>& RecBody::Parts()const void RecBody::addPart(const RecPart& part) { - RecPart*p = new RecPart(part); - m_PartsList.append(p); + m_PartsList.append(part); } |