More d-pointerization of the public KDAV API
ClosedPublic

Authored by vkrause on Sep 22 2019, 9:16 AM.

Diff Detail

Repository
R490 KDAV Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Sep 22 2019, 9:16 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptSep 22 2019, 9:16 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
vkrause requested review of this revision.Sep 22 2019, 9:16 AM
dvratil accepted this revision.Sep 22 2019, 11:30 AM
dvratil added a subscriber: dvratil.

Some small nitpicks, but the code is good to go even without those.

src/common/davcollectionsmultifetchjob.h
79

I usually mark d-pointers as const to prevent accidental re-assigning other than in constructor.

src/common/davmanager.cpp
50–51

I suppose you could just have static DavManager on stack and just return a pointer to it. The static will get initialized on the first call to self() and the initialization is thread-safe.

This revision is now accepted and ready to land.Sep 22 2019, 11:30 AM
vkrause updated this revision to Diff 66612.Sep 22 2019, 11:38 AM

Integrate review feedback.

dvratil accepted this revision.Sep 22 2019, 11:39 AM
This revision was automatically updated to reflect the committed changes.