author | simon <simon> | 2002-04-30 06:26:17 (UTC) |
---|---|---|
committer | simon <simon> | 2002-04-30 06:26:17 (UTC) |
commit | f521dd69afdd07f46e41299846880289b727514b (patch) (side-by-side diff) | |
tree | 1e9fe07ead05cf0ddfbf34438f4e2d85c1e87380 /core/pim/addressbook/contacteditor.cpp | |
parent | 702c4b745d42d9ad5fdcede0a40d85ea1b0577a6 (diff) | |
download | opie-f521dd69afdd07f46e41299846880289b727514b.zip opie-f521dd69afdd07f46e41299846880289b727514b.tar.gz opie-f521dd69afdd07f46e41299846880289b727514b.tar.bz2 |
- no default arguments in method implementations
- don't return void in non-void functions
Diffstat (limited to 'core/pim/addressbook/contacteditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index adea1a1..e74da87 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp @@ -43,27 +43,27 @@ static inline bool constainsWhiteSpace( const QString &str ); // helper functions, convert our comma delimited list to proper // file format... void parseEmailFrom( const QString &txt, QString &strDefaultEmail, QString &strAll ); // helper convert from file format to comma delimited... void parseEmailTo( const QString &strDefaultEmail, const QString &strOtherEmail, QString &strBack ); ContactEditor::ContactEditor( const Contact &entry, const QValueList<int> *newOrderedValues, QStringList *slNewOrdered, - QWidget *parent = 0, - const char *name = 0, - WFlags fl = 0 ) + QWidget *parent, + const char *name, + WFlags fl ) : QDialog( parent, name, TRUE, fl ), orderedValues( newOrderedValues ), slOrdered( slNewOrdered ) { init(); initMap(); setEntry( entry ); qDebug("finish"); } ContactEditor::~ContactEditor() { @@ -1116,24 +1116,25 @@ QString ContactEditor::parseName( const QString fullName, int type ) { return strFirstName; case NAME_M: return strMiddleName; case NAME_L: return strLastName; case NAME_S: return strSuffix; } + return QString::null; } void ContactEditor::cleanupFields() { QStringList::Iterator it = slChooserValues->begin(); for ( int i = 0; it != slChooserValues->end(); i++, ++it ) { (*it) = ""; } for ( int i = 0; i < 7; i++ ) { (*slHomeAddress)[i] = ""; (*slBusinessAddress)[i] = ""; |