diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-05-14 20:42:01 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-05-15 11:03:53 +0200 |
commit | 8ab4d2028f971dcddd53fa0fc9313f5abe491fa2 (patch) | |
tree | 9950032ee62a1d42a32821d264d562692b1d0a91 /src/widgets/styles | |
parent | 4469e36d7203a55a4e158a50f0e9effc3f2fa3c2 (diff) |
Composition example: use std::unique_ptr instead of QScopedPointer
The use of a unique_ptr member requires that the destructor be
out-of-line, since the payload is only forward-declared in the header
file. This is good hygiene, so do it for CompositionWidget, too.
Add 'explicit' and missing = nullptr to both constructors as a
drive-by.
Change-Id: Ied1c89864f90d3f2c13fb4e9a8bbbe2e6fd6f1d7
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/styles')
0 files changed, 0 insertions, 0 deletions