+ if (is_plugged[mga::as_hwc_display(display_name)].load() == false)
Can be written
if (!is_plugged[mga::as_hwc_display(display_name)])
~~~~
+ is_plugged[HWC_DISPLAY_PRIMARY].store(true); + is_plugged[HWC_DISPLAY_EXTERNAL].store(false); + is_plugged[HWC_DISPLAY_VIRTUAL].store(true);
Constructors should use initialization, not assignment
« Back to merge proposal
+ if (is_plugged[ mga::as_ hwc_display( display_ name)]. load() == false)
Can be written
if (!is_plugged[ mga::as_ hwc_display( display_ name)])
~~~~
+ is_plugged[ HWC_DISPLAY_ PRIMARY] .store( true); HWC_DISPLAY_ EXTERNAL] .store( false); HWC_DISPLAY_ VIRTUAL] .store( true);
+ is_plugged[
+ is_plugged[
Constructors should use initialization, not assignment