diff options
Diffstat (limited to 'libkcal/recurrencerule.cpp')
-rw-r--r-- | libkcal/recurrencerule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libkcal/recurrencerule.cpp b/libkcal/recurrencerule.cpp index 17292ec53..e225edb0c 100644 --- a/libkcal/recurrencerule.cpp +++ b/libkcal/recurrencerule.cpp @@ -104,7 +104,7 @@ TQDate DateHelper::getNthWeek( int year, int weeknumber, short weekstart ) { if ( weeknumber == 0 ) return TQDate(); // Adjust this to the first day of week #1 of the year and add 7*weekno days. - TQDate dt( year, 1, 4 ); // Week #1 is the week that contains Jan 4 + TQDate dt( year, 1, 4 ); // Week #1 is the week that tqcontains Jan 4 int adjust = -(7 + dt.dayOfWeek() - weekstart) % 7; if ( weeknumber > 0 ) { dt = dt.addDays( 7 * (weeknumber-1) + adjust ); @@ -541,13 +541,13 @@ bool RecurrenceRule::operator==( const RecurrenceRule& r ) const void RecurrenceRule::addObserver( Observer *observer ) { - if ( !mObservers.contains( observer ) ) + if ( !mObservers.tqcontains( observer ) ) mObservers.append( observer ); } void RecurrenceRule::removeObserver( Observer *observer ) { - if ( mObservers.contains( observer ) ) + if ( mObservers.tqcontains( observer ) ) mObservers.remove( observer ); } |