Diffstat (limited to 'core/pim/datebook/datebookweek.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookweek.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
@@ -603,25 +603,25 @@ QDate DateBookWeek::weekDate() const | |||
603 | // http://personal.ecu.edu/mccartyr/ISOwdALG.txt | 603 | // http://personal.ecu.edu/mccartyr/ISOwdALG.txt |
604 | // the week number is return, and the year number is returned in year | 604 | // the week number is return, and the year number is returned in year |
605 | // for Instance 2001/12/31 is actually the first week in 2002. | 605 | // for Instance 2001/12/31 is actually the first week in 2002. |
606 | // There is a more mathematical definition, but I will implement it when | 606 | // There is a more mathematical definition, but I will implement it when |
607 | // we are pass our deadline. | 607 | // we are pass our deadline. |
608 | 608 | ||
609 | // For Weeks that start on Sunday... (ahh... home rolled) | 609 | // For Weeks that start on Sunday... (ahh... home rolled) |
610 | // okay, if Jan 1 is on Friday or Saturday, | 610 | // okay, if Jan 1 is on Friday or Saturday, |
611 | // it will go to the pervious | 611 | // it will go to the pervious |
612 | // week... | 612 | // week... |
613 | 613 | ||
614 | bool calcWeek( const QDate &d, int &week, int &year, | 614 | bool calcWeek( const QDate &d, int &week, int &year, |
615 | bool startOnMonday = false ) | 615 | bool startOnMonday ) |
616 | { | 616 | { |
617 | int weekNumber; | 617 | int weekNumber; |
618 | int yearNumber; | 618 | int yearNumber; |
619 | 619 | ||
620 | // remove a pesky warning, (Optimizations on g++) | 620 | // remove a pesky warning, (Optimizations on g++) |
621 | weekNumber = -1; | 621 | weekNumber = -1; |
622 | int jan1WeekDay = QDate(d.year(), 1, 1).dayOfWeek(); | 622 | int jan1WeekDay = QDate(d.year(), 1, 1).dayOfWeek(); |
623 | int dayOfWeek = d.dayOfWeek(); | 623 | int dayOfWeek = d.dayOfWeek(); |
624 | 624 | ||
625 | if ( !d.isValid() ) | 625 | if ( !d.isValid() ) |
626 | return false; | 626 | return false; |
627 | 627 | ||