WebDAV: allow compilation on older distros (Ubuntu Hardy) II

One more location with icalcomponent_new_from_string(char *) has
to be hacked to compile.
This commit is contained in:
Patrick Ohly 2011-02-25 12:33:14 +01:00
parent 9b70dc2e03
commit 10f95123a7

View file

@ -129,7 +129,7 @@ SubSyncSource::SubItemResult CalDAVSource::insertSubItem(const std::string &luid
// parse new event
boost::shared_ptr<Event> newEvent(new Event);
newEvent->m_calendar.set(icalcomponent_new_from_string(item.c_str()),
newEvent->m_calendar.set(icalcomponent_new_from_string((char *)item.c_str()), // hack for old libical
"parsing iCalendar 2.0");
struct icaltimetype lastmodtime = icaltime_null_time();
icalcomponent *firstcomp = NULL;