Diffstat (limited to 'noncore/net/mail/libmailwrapper') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.cpp | 10 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.h | 10 |
2 files changed, 9 insertions, 11 deletions
diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 3e1d8d1..9f4c47c 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp | |||
@@ -1,7 +1,5 @@ | |||
1 | #include "statusmail.h" | 1 | #include "statusmail.h" |
2 | #include "mailtypes.h" | ||
3 | #include "abstractmail.h" | ||
4 | #include <qlist.h> | 2 | #include <qlist.h> |
5 | 3 | ||
6 | StatusMail::StatusMail(QList<Account>*list) | 4 | StatusMail::StatusMail(QList<Account>&list) |
7 | { | 5 | { |
@@ -21,5 +19,5 @@ StatusMail::~StatusMail() | |||
21 | 19 | ||
22 | void StatusMail::initAccounts(QList<Account>*accounts) | 20 | void StatusMail::initAccounts(QList<Account>&accounts) |
23 | { | 21 | { |
24 | if (!accounts) return; | 22 | |
25 | Account *it; | 23 | Account *it; |
@@ -27,3 +25,3 @@ void StatusMail::initAccounts(QList<Account>*accounts) | |||
27 | AbstractMail * current = 0; | 25 | AbstractMail * current = 0; |
28 | for ( it = accounts->first(); it; it = accounts->next() ) { | 26 | for ( it = accounts.first(); it; it = accounts.next() ) { |
29 | if ( it->getType().compare( "IMAP" ) == 0 ) { | 27 | if ( it->getType().compare( "IMAP" ) == 0 ) { |
diff --git a/noncore/net/mail/libmailwrapper/statusmail.h b/noncore/net/mail/libmailwrapper/statusmail.h index 498f7a3..2637232 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.h +++ b/noncore/net/mail/libmailwrapper/statusmail.h | |||
@@ -3,5 +3,5 @@ | |||
3 | 3 | ||
4 | #include <settings.h> | 4 | #include "settings.h" |
5 | #include <abstractmail.h> | 5 | #include "abstractmail.h" |
6 | #include <mailtypes.h> | 6 | #include "mailtypes.h" |
7 | 7 | ||
@@ -10,3 +10,3 @@ class StatusMail | |||
10 | public: | 10 | public: |
11 | StatusMail(QList<Account>*list); | 11 | StatusMail(QList<Account>&list); |
12 | virtual ~StatusMail(); | 12 | virtual ~StatusMail(); |
@@ -19,3 +19,3 @@ public: | |||
19 | protected: | 19 | protected: |
20 | void initAccounts(QList<Account>*list); | 20 | void initAccounts(QList<Account>&accounts); |
21 | /* this must be cause we have to calculate the recent for pop3*/ | 21 | /* this must be cause we have to calculate the recent for pop3*/ |