author | zecke <zecke> | 2003-05-24 08:45:50 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-24 08:45:50 (UTC) |
commit | 3fb06f85a52b6fcbece50ed30c196efc2a91e8ce (patch) (side-by-side diff) | |
tree | 618d3b21756a07fad10e1e1359bd12a0e7e15089 /noncore/unsupported/mailit/addresslist.cpp | |
parent | 694ff39fe4f0f4164edd7a2a80abe6be3a4fa2f9 (diff) | |
download | opie-3fb06f85a52b6fcbece50ed30c196efc2a91e8ce.zip opie-3fb06f85a52b6fcbece50ed30c196efc2a91e8ce.tar.gz opie-3fb06f85a52b6fcbece50ed30c196efc2a91e8ce.tar.bz2 |
don't crash when compiled with gcc3
one Contact in libqpe
one Contact in addresslist.h
a nice game of russian roulette gcc3 lost...
Diffstat (limited to 'noncore/unsupported/mailit/addresslist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/addresslist.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/noncore/unsupported/mailit/addresslist.cpp b/noncore/unsupported/mailit/addresslist.cpp index 18d14bc..f2b027c 100644 --- a/noncore/unsupported/mailit/addresslist.cpp +++ b/noncore/unsupported/mailit/addresslist.cpp @@ -45,3 +45,3 @@ void AddressList::addContact(const QString &email, const QString &name) if ( ! containsEmail(email) ) { - Contact *in = new Contact; + AContact *in = new AContact; in->email = email; @@ -67,3 +67,3 @@ QString AddressList::getNameByEmail(const QString &email) if (pos != -1) { - Contact *ptr = addresses.at(pos); + AContact *ptr = addresses.at(pos); return ptr->name; @@ -71,3 +71,3 @@ QString AddressList::getNameByEmail(const QString &email) - return NULL; + return QString::null; } @@ -78,3 +78,3 @@ QString AddressList::getEmailByName(const QString &name) if (pos != -1) { - Contact *ptr = addresses.at(pos); + AContact *ptr = addresses.at(pos); return ptr->email; @@ -82,3 +82,3 @@ QString AddressList::getEmailByName(const QString &name) - return NULL; + return QString::null; } @@ -88,3 +88,3 @@ int AddressList::getEmailRef(const QString &email) int pos = 0; - Contact *ptr; + AContact *ptr; @@ -101,3 +101,3 @@ int AddressList::getNameRef(const QString &name) int pos = 0; - Contact *ptr; + AContact *ptr; @@ -111,3 +111,3 @@ int AddressList::getNameRef(const QString &name) -QList<Contact>* AddressList::getContactList() +QList<AContact>* AddressList::getContactList() { |