diff options
author | Zach Reizner <zachr@google.com> | 2015-10-28 19:08:45 -0700 |
---|---|---|
committer | Zach Reizner <zachr@google.com> | 2015-10-29 09:59:39 -0700 |
commit | ff30b52303cdbeb9cbfb054e2a12da1135ea49c9 (patch) | |
tree | d6b9dbc08f43ae2c4814c23c653e632b4180bae1 /drmplane.cpp | |
parent | 7cd2643b0de900e00e5b0cc0bd6dbbc649840b02 (diff) | |
download | drm_hwcomposer-ff30b52303cdbeb9cbfb054e2a12da1135ea49c9.tar.gz |
drm_hwcomposer: polish for old DRM wrapper code
- deleted private copy constructors
- replace delete with unique_ptr
- use in-class assignment
- remove default constructors/destructors when no longer needed
- remove most iterators used in for loops
- move UniqueFd to its own header so drmresources can use it
Change-Id: Ib20cc0949cf4d381a58548b8156c5cb368ca3efe
Diffstat (limited to 'drmplane.cpp')
-rw-r--r-- | drmplane.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drmplane.cpp b/drmplane.cpp index 5785d5a..2314c39 100644 --- a/drmplane.cpp +++ b/drmplane.cpp @@ -31,9 +31,6 @@ DrmPlane::DrmPlane(DrmResources *drm, drmModePlanePtr p) : drm_(drm), id_(p->plane_id), possible_crtc_mask_(p->possible_crtcs) { } -DrmPlane::~DrmPlane() { -} - int DrmPlane::Init() { DrmProperty p; |