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 /drmproperty.cpp | |
parent | 7cd2643b0de900e00e5b0cc0bd6dbbc649840b02 (diff) |
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 'drmproperty.cpp')
-rw-r--r-- | drmproperty.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drmproperty.cpp b/drmproperty.cpp index 7b4a4f9..6f65dac 100644 --- a/drmproperty.cpp +++ b/drmproperty.cpp @@ -37,17 +37,6 @@ DrmProperty::DrmProperty(drmModePropertyPtr p, uint64_t value) Init(p, value); } -DrmProperty::DrmProperty() - : id_(0), - type_(DRM_PROPERTY_TYPE_INVALID), - flags_(0), - name_(""), - value_(0) { -} - -DrmProperty::~DrmProperty() { -} - void DrmProperty::Init(drmModePropertyPtr p, uint64_t value) { id_ = p->prop_id; flags_ = p->flags; |