Change most of Event's properties to extracted properties
ClosedPublic

Authored by rnicole on Apr 11 2018, 10:15 AM.

Diff Detail

Repository
R9 Sink
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
rnicole requested review of this revision.Apr 11 2018, 10:15 AM
rnicole created this revision.
rnicole updated this revision to Diff 31891.Apr 11 2018, 2:54 PM

Fixed the license header to display 2018 instead 2017
Add an assertion to check that the given iCal is valid in the Event property extractor

cmollekopf requested changes to this revision.Apr 12 2018, 11:23 PM
cmollekopf added inline comments.
common/eventpreprocessor.cpp
30

Q_ASSERT(incidence) is enough.

33

dynamic_cast'ing a reference is probably a bad idea. dynamic cast a pointer and wrap the user of the pointer in an if branch. Asserting is fine, but in production code we want to minimize crashing.

This revision now requires changes to proceed.Apr 12 2018, 11:23 PM
rnicole updated this revision to Diff 32043.Apr 13 2018, 8:46 AM
rnicole marked 2 inline comments as done.

Removed some assertions and dynamic_cast a pointer instead of a reference

cmollekopf accepted this revision.Apr 13 2018, 9:51 AM
This revision is now accepted and ready to land.Apr 13 2018, 9:51 AM
This revision was automatically updated to reflect the committed changes.