author | alwin <alwin> | 2003-12-13 02:35:48 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-13 02:35:48 (UTC) |
commit | f689ef512cfc0a56fead4839a6b2e24a6ee282e0 (patch) (side-by-side diff) | |
tree | c06b5e75d237bba3c5569d24bfa138faef1c38b9 /noncore/net/mail/libmailwrapper/mailtypes.cpp | |
parent | c7749c503736091d0472e11b5bb0a8a82232bd61 (diff) | |
download | opie-f689ef512cfc0a56fead4839a6b2e24a6ee282e0.zip opie-f689ef512cfc0a56fead4839a6b2e24a6ee282e0.tar.gz opie-f689ef512cfc0a56fead4839a6b2e24a6ee282e0.tar.bz2 |
using QValueList<T> instead of QList<T> for body parts
(gives a better handling for const and non-const values and
so on)
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 11 |
1 files changed, 5 insertions, 6 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); } |