Diffstat (limited to 'noncore/net/mail/libmailwrapper') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 11 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.h | 6 |
2 files changed, 8 insertions, 9 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp index f56bb63..9c312e9 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.cpp +++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp @@ -168,3 +168,3 @@ RecBody::RecBody() { - m_PartsList.setAutoDelete(true); + m_PartsList.clear(); } @@ -185,9 +185,9 @@ 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 { @@ -198,4 +198,3 @@ void RecBody::addPart(const RecPart& part) { - RecPart*p = new RecPart(part); - m_PartsList.append(p); + m_PartsList.append(part); } diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index 60db527..f308bc7 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h @@ -110,3 +110,3 @@ protected: QString m_BodyText; - QList<RecPart> m_PartsList; + QValueList<RecPart> m_PartsList; RecPart m_description; @@ -122,4 +122,4 @@ public: - void setParts(const QList<RecPart>&parts); - const QList<RecPart>& Parts()const; + void setParts(const QValueList<RecPart>&parts); + const QValueList<RecPart>& Parts()const; void addPart(const RecPart&part); |