[Kde-pim] Bug in akonadi/resources/ical/icalresource.cpp ?

David Jarvie djarvie at kde.org
Thu Jan 29 13:29:07 GMT 2009


There appears to be a bug in akonadi/resources/ical/icalresource.cpp, in
ICalResource::itemChanged(). The line

*incidence = *(payload.get());

assumes that operator=() is virtual, but that not being the case it will
only copy the base Incidence class part of what payload.get() returns - if
it's an Event, for example, the Event d-pointer won't be copied. Even if
it did work, it should first check that the Incidence sub-class type is
the same on both sides of the assignment. Or am I completely mistaken?

-- 
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list