summaryrefslogtreecommitdiff
path: root/library/datebookdb.cpp
Side-by-side diff
Diffstat (limited to 'library/datebookdb.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/datebookdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/datebookdb.cpp b/library/datebookdb.cpp
index 2f33255..000ff71 100644
--- a/library/datebookdb.cpp
+++ b/library/datebookdb.cpp
@@ -838,17 +838,17 @@ void DateBookDB::loadFile( const QString &strFile )
else if ( value == "Yearly" )
rp.type = Event::Yearly;
else
rp.type = Event::NoRepeat;
break;
case FRWeekdays:
// QtopiaDesktop 1.6 sometimes creates 'rweekdays="0"'
// when it goes mad. This causes datebook to crash.. (se)
- if ( value.toInt() != 0 )
+ if ( value.toInt() != 0 )
rp.days = value.toInt();
else
rp.days = 1;
break;
case FRPosition:
rp.position = value.toInt();
break;
case FRFreq:
@@ -1035,17 +1035,17 @@ void DateBookDB::reload()
}
bool DateBookDB::removeRepeat( const Event &ev )
{
time_t removeMe = ev.repeatPattern().createTime;
QValueListIterator<Event> it;
for ( it = repeatEvents.begin(); it != repeatEvents.end(); ++it ) {
if ( removeMe == (*it).repeatPattern().createTime ) {
- repeatEvents.remove( *it );
+ (void)repeatEvents.remove( it );
// best break, or we are going into undefined territory!
return TRUE;
}
}
return FALSE;
}
bool DateBookDB::origRepeat( const Event &ev, Event &orig ) const