Commit 5af37461 authored by David Jarvie's avatar David Jarvie
Browse files

Remove deprecated calls, use QString() instead of QLatin1String("")

parent 48f5f18f
......@@ -1471,7 +1471,7 @@ bool KAEventPrivate::updateKCalEvent(Event* ev, KAEvent::UidAction uidact) const
*/
ev->setDtStart(mStartDateTime.calendarKDateTime());
ev->setAllDay(false);
ev->setHasEndDate(false);
ev->setDtEnd(KDateTime());
const DateTime dtMain = archived ? mStartDateTime : mNextMainDateTime;
int ancillaryType = 0; // 0 = invalid, 1 = time, 2 = offset
......@@ -1739,7 +1739,7 @@ Alarm* KAEventPrivate::initKCalAlarm(Event* event, int startOffsetSecs, const QS
break;
case KAEvent::COMMAND:
if (mCommandScript)
alarm->setProcedureAlarm(QLatin1String(""), mText);
alarm->setProcedureAlarm(QString(), mText);
else
setProcedureAlarm(alarm, mText);
display = mCommandDisplay;
......@@ -5485,7 +5485,7 @@ bool KAEvent::convertKCalEvents(CalendarLocal& calendar, int calendarVersion)
start.setTime(QTime(0, 0));
flags += KAEventPrivate::DATE_ONLY_FLAG;
}
event->setHasEndDate(false);
event->setDtEnd(KDateTime());
for (int ai = 0, aend = alarms.count(); ai < aend; ++ai)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment