diff options
Diffstat (limited to 'libkcal')
-rw-r--r-- | libkcal/calformat.h | 2 | ||||
-rw-r--r-- | libkcal/tests/fbrecurring.cpp | 4 | ||||
-rw-r--r-- | libkcal/vcalformat.cpp | 14 | ||||
-rw-r--r-- | libkcal/vcalformat.h | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/libkcal/calformat.h b/libkcal/calformat.h index b3b7160d..39bd98bf 100644 --- a/libkcal/calformat.h +++ b/libkcal/calformat.h @@ -50,7 +50,7 @@ class LIBKCAL_EXPORT CalFormat /** loads a calendar on disk into the calendar associated with this format. - Returns TRUE if successful,else returns FALSE. + Returns true if successful,else returns false. @param fileName the name of the calendar on disk. */ virtual bool load(Calendar *, const TQString &fileName) = 0; diff --git a/libkcal/tests/fbrecurring.cpp b/libkcal/tests/fbrecurring.cpp index be70a7c8..e4678a54 100644 --- a/libkcal/tests/fbrecurring.cpp +++ b/libkcal/tests/fbrecurring.cpp @@ -20,7 +20,7 @@ int main() event1->setDtStart( TQDateTime(TQDate(2006,1,1), TQTime(12,0,0)) ); //event1->setDuration(60*60); event1->setDtEnd( TQDateTime(TQDate(2006,1,1), TQTime(13,0,0)) ); - event1->setFloats(FALSE); + event1->setFloats(false); event1->recurrence()->setDaily( 1 ); //event1->recurrence()->setDuration( 2 ); event1->recurrence()->setEndDateTime( TQDateTime(TQDate(2006,1,3), TQTime(13,0,0)) ); @@ -32,7 +32,7 @@ int main() event2->setDtStart( TQDateTime(TQDate(2006,1,1), TQTime(13,0,0)) ); //event2->setDuration(60*60); event2->setDtEnd( TQDateTime(TQDate(2006,1,1), TQTime(14,0,0)) ); - event2->setFloats(FALSE); + event2->setFloats(false); event2->recurrence()->setDaily( 1 ); //event2->recurrence()->setDuration( 3 ); event2->recurrence()->setEndDateTime( TQDateTime(TQDate(2006,1,4), TQTime(13,0,0)) ); diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index f78ad2a3..539921fa 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp @@ -71,7 +71,7 @@ bool VCalFormat::load(Calendar *calendar, const TQString &fileName) if (!vcal) { setException(new ErrorFormat(ErrorFormat::CalVersionUnknown)); - return FALSE; + return false; } // any other top-level calendar stuff should be added/initialized here @@ -503,7 +503,7 @@ VObject* VCalFormat::eventToVEvent(const Event *anEvent) } else if (recur->duration() == -1) { tmpStr += "#0"; // defined as repeat forever } else { - tmpStr += qDateTimeToISO(recur->endDateTime(), FALSE); + tmpStr += qDateTimeToISO(recur->endDateTime(), false); } // Only write out the rrule if we have a valid recurrence (i.e. a known // type in thee switch above) @@ -948,11 +948,11 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) // "take up" any time. /*if ((isAPropertyOf(vevent, VCDTstartProp) == 0) || (isAPropertyOf(vevent, VCDTendProp) == 0)) { - anEvent->setFloats(TRUE); + anEvent->setFloats(true); } else { }*/ - anEvent->setFloats(FALSE); + anEvent->setFloats(false); // start time if ((vo = isAPropertyOf(vevent, VCDTstartProp)) != 0) { @@ -960,7 +960,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) // kdDebug(5800) << "s is " << // s << ", ISO is " << ISOToTQDateTime(s = fakeCString(vObjectUStringZValue(vo))).toString() << endl; deleteStr(s); if (anEvent->dtStart().time().isNull()) - anEvent->setFloats(TRUE); + anEvent->setFloats(true); } // stop time @@ -968,7 +968,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) anEvent->setDtEnd(ISOToTQDateTime(s = fakeCString(vObjectUStringZValue(vo)))); deleteStr(s); if (anEvent->dtEnd().time().isNull()) - anEvent->setFloats(TRUE); + anEvent->setFloats(true); } // at this point, there should be at least a start or end time. @@ -1071,7 +1071,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) } anEvent->recurrence()->addMonthlyPos( tmpPos, qba ); qba.detach(); - qba.fill(FALSE); // clear out + qba.fill(false); // clear out } // while != "#" } break;} diff --git a/libkcal/vcalformat.h b/libkcal/vcalformat.h index facda241..60151ff9 100644 --- a/libkcal/vcalformat.h +++ b/libkcal/vcalformat.h @@ -86,7 +86,7 @@ class LIBKCAL_EXPORT VCalFormat : public CalFormat /** takes a TQDate and returns a string in the format YYYYMMDDTHHMMSS */ TQString qDateToISO(const TQDate &); /** takes a TQDateTime and returns a string in format YYYYMMDDTHHMMSS */ - TQString qDateTimeToISO(const TQDateTime &, bool zulu=TRUE); + TQString qDateTimeToISO(const TQDateTime &, bool zulu=true); /** takes a string in the format YYYYMMDDTHHMMSS and returns a * valid TQDateTime. */ TQDateTime ISOToTQDateTime(const TQString & dtStr); |