author | simon <simon> | 2002-04-30 14:28:04 (UTC) |
---|---|---|
committer | simon <simon> | 2002-04-30 14:28:04 (UTC) |
commit | b7b0040f0a8069d36e3f5ad0bed0ce992dd30780 (patch) (side-by-side diff) | |
tree | 39ac29f14f3e2e153af816b7a9f0f2d821bb075a | |
parent | 972fbb128294c821ff0f13ea59a83edb015d571e (diff) | |
download | opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.zip opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.tar.gz opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.tar.bz2 |
- no default args in method impls
- resolved parameter shadowing problem
-rw-r--r-- | core/pim/datebook/clickablelabel.cpp | 6 | ||||
-rw-r--r-- | core/pim/datebook/datebookday.cpp | 8 | ||||
-rw-r--r-- | core/pim/datebook/datebookweek.cpp | 2 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 12 | ||||
-rw-r--r-- | core/pim/datebook/timepicker.cpp | 4 |
5 files changed, 16 insertions, 16 deletions
diff --git a/core/pim/datebook/clickablelabel.cpp b/core/pim/datebook/clickablelabel.cpp index 1dd0d15..128bebb 100644 --- a/core/pim/datebook/clickablelabel.cpp +++ b/core/pim/datebook/clickablelabel.cpp @@ -2,7 +2,7 @@ #include <stdio.h> -ClickableLabel::ClickableLabel(QWidget* parent = 0, - const char* name = 0, - WFlags fl = 0) : +ClickableLabel::ClickableLabel(QWidget* parent, + const char* name, + WFlags fl) : QLabel(parent,name,fl) { diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp index d5daab2..67a88e9 100644 --- a/core/pim/datebook/datebookday.cpp +++ b/core/pim/datebook/datebookday.cpp @@ -486,8 +486,8 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e, setBackgroundMode( PaletteBase ); - QTime s = ev.start(); - QTime e = ev.end(); - int y = s.hour()*60+s.minute(); - int h = e.hour()*60+e.minute()-y; + QTime start = ev.start(); + QTime end = ev.end(); + int y = start.hour()*60+start.minute(); + int h = end.hour()*60+end.minute()-y; int rh = dateBook->dayView()->rowHeight(0); y = y*rh/60; diff --git a/core/pim/datebook/datebookweek.cpp b/core/pim/datebook/datebookweek.cpp index e9fcc39..6532ba4 100644 --- a/core/pim/datebook/datebookweek.cpp +++ b/core/pim/datebook/datebookweek.cpp @@ -613,5 +613,5 @@ QDate DateBookWeek::weekDate() const bool calcWeek( const QDate &d, int &week, int &year, - bool startOnMonday = false ) + bool startOnMonday ) { int weekNumber; diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index 7083bc5..85c745a 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp @@ -93,7 +93,7 @@ void DateBookWeekLstHeader::prevWeek() { DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool onM, - QWidget* parent = 0, - const char* name = 0, - WFlags fl = 0 ) + QWidget* parent, + const char* name, + WFlags fl ) : DateBookWeekLstDayHdrBase(parent, name, fl) { @@ -141,7 +141,7 @@ void DateBookWeekLstDayHdr::newEvent() { } DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev, - QWidget* parent = 0, - const char* name = 0, - WFlags fl = 0) : + QWidget* parent, + const char* name, + WFlags fl) : ClickableLabel(parent,name,fl), event(ev) diff --git a/core/pim/datebook/timepicker.cpp b/core/pim/datebook/timepicker.cpp index 9097e1b..43e05ad 100644 --- a/core/pim/datebook/timepicker.cpp +++ b/core/pim/datebook/timepicker.cpp @@ -8,6 +8,6 @@ #include <stdio.h> -TimePicker::TimePicker(QWidget* parent = 0, const char* name = 0, - WFlags fl = 0) : +TimePicker::TimePicker(QWidget* parent, const char* name, + WFlags fl) : QWidget(parent,name,fl) { |