Diffusion KWin 02a5a08a6c95

[platforms/drm] Rework ScopedDrmPointer

Authored by zzag on Mar 20 2019, 8:32 AM.

Description

[platforms/drm] Rework ScopedDrmPointer

Summary:
Currently there is no any good reason for keeping ScopedDrmPointer;
providing our own deleter for QScopedPointer would make more sense.

Given that we already have type that acts as a scoped pointer for drm
objects we can improve it a bit and make simpler, e.g.

DrmScopedPointer<drmModeConnector> connector;

is much simpler than

ScopedDrmPointer<_drmModeConnector, &drmModeFreeConnector> connector;

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: apol, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D19905

Details

Committed
zzagApr 9 2019, 11:09 AM
Reviewer
KWin
Differential Revision
D19905: [platforms/drm] Rework ScopedDrmPointer
Parents
R108:efc62941eeb6: [wayland] Place all toplevels before the first configure
Branches
Unknown
Tags
Unknown