From da5e47069d88fa9aa656423ce4c60bf505728e1c Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 07 Feb 2005 20:05:18 +0000 Subject: fixes --- (limited to 'libkcal/event.cpp') diff --git a/libkcal/event.cpp b/libkcal/event.cpp index 7256f05..de8dceb 100644 --- a/libkcal/event.cpp +++ b/libkcal/event.cpp @@ -89,7 +89,7 @@ bool Event::contains ( Event* from ) QStringList cat = categories(); QStringList catFrom = from->categories(); QString nCat; - int iii; + unsigned int iii; for ( iii = 0; iii < catFrom.count();++iii ) { nCat = catFrom[iii]; if ( !nCat.isEmpty() ) @@ -120,8 +120,6 @@ QDateTime Event::dtEnd() const if (hasEndDate()) return mDtEnd; if (hasDuration()) return dtStart().addSecs(duration()); - kdDebug(5800) << "Warning! Event '" << summary() - << "' does have neither end date nor duration." << endl; return dtStart(); } @@ -185,7 +183,7 @@ QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset ) const bool enabled = false; Alarm* alarm; - int off; + int off = 0; QDateTime alarmStart = QDateTime::currentDateTime().addDays( 3650 );; // if ( QDateTime::currentDateTime() > incidenceStart ){ // *ok = false; -- cgit v0.9.0.2