Cleanup and modernize the Calendar library codebase
ClosedPublic

Authored by dvratil on Sep 19 2019, 3:12 PM.

Details

Summary
  • enable C++14
  • use QScopedPointer for d-pointers
  • remove dead/unused code
  • refactor duplicated code into functions
  • use named constants instead of string literals to avoid typos but also to reduce the binary size due to string duplication
  • const'ify and auto'ify
Test Plan

Compiles, tests pass

Diff Detail

Repository
R477 KGAPI Library
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16780
Build 16798: arc lint + arc unit
dvratil created this revision.Sep 19 2019, 3:12 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptSep 19 2019, 3:12 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil requested review of this revision.Sep 19 2019, 3:12 PM
dvratil updated this revision to Diff 66471.Sep 19 2019, 3:18 PM
  • Missing const in the timezone lookup tables
barchiesi accepted this revision.Sep 21 2019, 3:05 PM

This patch is an excellent example that can be used in other parts of LibKGAPI. I couldn't find anything to point out, it is good for me.

This revision is now accepted and ready to land.Sep 21 2019, 3:05 PM
This revision was automatically updated to reflect the committed changes.