[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/libkcal
From: David Faure <faure () kde ! org>
Date: 2003-01-28 14:10:50
[Download RAW message or body]
CVS commit by faure:
Forward port memleak fix and timezone fix
M +6 -6 icalformat.cpp 1.40
--- kdepim/libkcal/icalformat.cpp #1.39:1.40
@@ -147,17 +147,17 @@ bool ICalFormat::fromString( Calendar *c
Incidence *ICalFormat::fromString( const QString &text )
{
- Calendar *cal = new CalendarLocal();
- fromString(cal, text);
+ CalendarLocal cal( mTimeZoneId );
+ fromString(&cal, text);
Incidence *ical = 0;
- QPtrList<Event> elist = cal->events();
+ QPtrList<Event> elist = cal.events();
if ( elist.count() > 0 ) {
ical = elist.first();
} else {
- QPtrList<Todo> tlist = cal->todos();
+ QPtrList<Todo> tlist = cal.todos();
if ( tlist.count() > 0 ) {
ical = tlist.first();
} else {
- QPtrList<Journal> jlist = cal->journals();
+ QPtrList<Journal> jlist = cal.journals();
if ( jlist.count() > 0 ) {
ical = jlist.first();
@@ -215,5 +215,5 @@ QString ICalFormat::toString( Calendar *
QString ICalFormat::toICalString( Incidence *incidence )
{
- CalendarLocal cal;
+ CalendarLocal cal( mTimeZoneId );
cal.addIncidence( incidence->clone() );
return toString( &cal );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic