fix(macOS): emplace_back constructor fix; display_device interface factory#280
Conversation
|
Just to clarify the issue:
I went with push_back and NOSONAR; the only way out of this would be to add a constructor to EnumeratedDevice so the first format works everywhere. But that'd make EnumeratedDevice no longer an aggregate, and cascade into a lot of code change just to keep Sonar happy. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #280 +/- ##
==========================================
- Coverage 80.17% 80.00% -0.18%
==========================================
Files 59 63 +4
Lines 3370 3415 +45
Branches 1534 1553 +19
==========================================
+ Hits 2702 2732 +30
- Misses 348 355 +7
- Partials 320 328 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
ReenigneArcher
left a comment
There was a problem hiding this comment.
Probably worth adding a macos-14 matrix here just to make sure everything builds? https://github.com/LizardByte/libdisplaydevice/blob/master/.github/workflows/ci.yml
Would need an entry for build and coverage jobs.
64b8116 to
9210943
Compare
|



Description
The necessary changes for LizardByte/Sunshine#5338 to clear. Also includes the interface factory so display_device.cpp does not have to pull in platform-specific libdisplaydevice includes.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage