Use in-class member initialization where possible
ClosedPublic

Authored by dhaumann on Jul 30 2018, 8:33 PM.

Details

Summary

Allows to default some constructors.

Test Plan

make test

Diff Detail

Repository
R216 Syntax Highlighting
Branch
useMemberInit (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1380
Build 1398: arc lint + arc unit
dhaumann created this revision.Jul 30 2018, 8:33 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptJul 30 2018, 8:33 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
dhaumann requested review of this revision.Jul 30 2018, 8:33 PM
vkrause accepted this revision.Jul 31 2018, 7:50 AM

Moving a default ctor/dtor definition to the header would break ABI for exported classes, but this seems to only touch non-exported ones, so this should be fine.

This revision is now accepted and ready to land.Jul 31 2018, 7:50 AM

Yes, only private classes were changed intentionally. Public classes don't have members anyways besides the d-pointer. And the d-pointer requires a non-trivial constructor/destructor.

This revision was automatically updated to reflect the committed changes.