Only set isDirty if something was changed
AbandonedPublic

Authored by knauss on Nov 24 2015, 5:19 PM.

Details

Summary

Do not add field to dirtyField, only because a set function was called.

Diff Detail

Lint
No Linters Available
Unit
No Unit Test Coverage
knauss updated this revision to Diff 1371.Nov 24 2015, 5:19 PM
knauss retitled this revision from to Only set isDirty if something was changed.
knauss updated this object.
knauss edited the test plan for this revision. (Show Details)
knauss added reviewers: vkrause, mlaurent, smartins.
knauss added a project: KDE PIM.
smartins requested changes to this revision.Nov 24 2015, 9:57 PM
smartins edited edge metadata.

a couple of comments, looks good otherwise

src/incidence.cpp
400

Reorder for performance:

if (d->mRecurrence && dirtyFields().contains(FieldDtStart))

src/recurrence.cpp
490

space after if

715

return nullptr;

This revision now requires changes to proceed.Nov 24 2015, 9:57 PM
knauss updated this revision to Diff 1481.Dec 8 2015, 4:46 PM
knauss edited edge metadata.
knauss marked 3 inline comments as done.

Update with smartins comments