Simplify getting edid in xrandr backend
ClosedPublic

Authored by gladhorn on Jul 11 2018, 9:19 AM.

Details

Summary

XRandR::outputEdid is used in only one place, let it return a byte array directly.

Diff Detail

Repository
R110 KScreen Library
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 747
Build 759: arc lint + arc unit
gladhorn created this revision.Jul 11 2018, 9:19 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 11 2018, 9:19 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gladhorn requested review of this revision.Jul 11 2018, 9:19 AM
davidedmundson accepted this revision.Jul 11 2018, 10:25 AM
This revision is now accepted and ready to land.Jul 11 2018, 10:25 AM
zzag added a subscriber: zzag.Jul 11 2018, 10:49 AM
zzag added inline comments.
backends/xrandr/xrandr.cpp
273

reinterpret_cast<char*>(result)

275

It would be great to use QScopedPointer, but that would be unrelated change, I guess.

gladhorn added inline comments.Jul 11 2018, 11:38 AM
backends/xrandr/xrandr.cpp
273

I agree, but there are more places with c-style casts, let's clean them all up in one go. This is just moving things.

This revision was automatically updated to reflect the committed changes.